// 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