// WARNING: Please don't edit this file. It was generated by C++/WinRT // v2.0.250303.1 #pragma once #ifndef WINRT_Microsoft_UI_Input_H #define WINRT_Microsoft_UI_Input_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.250303.1" #include "winrt/Microsoft.UI.h" #include "winrt/impl/Microsoft.UI.2.h" #include "winrt/impl/Microsoft.UI.Content.2.h" #include "winrt/impl/Microsoft.UI.Dispatching.2.h" #include "winrt/impl/Microsoft.UI.Input.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Graphics.2.h" #include "winrt/impl/Windows.System.2.h" #include "winrt/impl/Windows.UI.Core.2.h" namespace winrt::impl { template auto consume_Microsoft_UI_Input_ICharacterReceivedEventArgs::Handled() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Handled(&value)); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_Handled(&value)); } return value; } template auto consume_Microsoft_UI_Input_ICharacterReceivedEventArgs::Handled( bool value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Handled(value)); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->put_Handled(value)); } } template auto consume_Microsoft_UI_Input_ICharacterReceivedEventArgs::KeyCode() const { uint32_t value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_KeyCode(&value)); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_KeyCode(&value)); } return value; } template auto consume_Microsoft_UI_Input_ICharacterReceivedEventArgs::KeyStatus() const { winrt::Microsoft::UI::Input::PhysicalKeyStatus value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_KeyStatus(put_abi(value))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_KeyStatus(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IContextMenuKeyEventArgs::Handled() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IContextMenuKeyEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IContextMenuKeyEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Handled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Handled(&value)); } return value; } template auto consume_Microsoft_UI_Input_IContextMenuKeyEventArgs::Handled( bool value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IContextMenuKeyEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IContextMenuKeyEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Handled(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Handled(value)); } } template auto consume_Microsoft_UI_Input_ICrossSlidingEventArgs::CrossSlidingState() const { winrt::Microsoft::UI::Input::CrossSlidingState value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::ICrossSlidingEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::ICrossSlidingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CrossSlidingState( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CrossSlidingState( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_ICrossSlidingEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::ICrossSlidingEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::ICrossSlidingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_ICrossSlidingEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::ICrossSlidingEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::ICrossSlidingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IDraggingEventArgs::DraggingState() const { winrt::Microsoft::UI::Input::DraggingState value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IDraggingEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IDraggingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_DraggingState(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_DraggingState(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IDraggingEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IDraggingEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IDraggingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IDraggingEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IDraggingEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IDraggingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IEnteredMoveSizeEventArgs< D>::PointerScreenPoint() const { winrt::Windows::Graphics::PointInt32 value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IEnteredMoveSizeEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IEnteredMoveSizeEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IEnteredMoveSizeEventArgs< D>::MoveSizeOperation() const { winrt::Microsoft::UI::Input::MoveSizeOperation value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IEnteredMoveSizeEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IEnteredMoveSizeEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MoveSizeOperation( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MoveSizeOperation( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IEnteringMoveSizeEventArgs< D>::PointerScreenPoint() const { winrt::Windows::Graphics::PointInt32 value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IEnteringMoveSizeEventArgs< D>::MoveSizeOperation() const { winrt::Microsoft::UI::Input::MoveSizeOperation value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MoveSizeOperation( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MoveSizeOperation( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IEnteringMoveSizeEventArgs< D>::MoveSizeWindowId() const { winrt::Microsoft::UI::WindowId value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MoveSizeWindowId(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MoveSizeWindowId(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IEnteringMoveSizeEventArgs::MoveSizeWindowId( winrt::Microsoft::UI::WindowId const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_MoveSizeWindowId(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_MoveSizeWindowId(impl::bind_in(value))); } } template auto consume_Microsoft_UI_Input_IExitedMoveSizeEventArgs< D>::PointerScreenPoint() const { winrt::Windows::Graphics::PointInt32 value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IExitedMoveSizeEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IExitedMoveSizeEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IExitedMoveSizeEventArgs::MoveSizeOperation() const { winrt::Microsoft::UI::Input::MoveSizeOperation value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IExitedMoveSizeEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IExitedMoveSizeEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MoveSizeOperation( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MoveSizeOperation( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IFocusChangedEventArgs::Handled() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IFocusChangedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IFocusChangedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Handled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Handled(&value)); } return value; } template auto consume_Microsoft_UI_Input_IFocusChangedEventArgs::Handled( bool value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IFocusChangedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IFocusChangedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Handled(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Handled(value)); } } template auto consume_Microsoft_UI_Input_IFocusNavigationRequest::CorrelationId() const { winrt::guid value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IFocusNavigationRequest>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IFocusNavigationRequest, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CorrelationId(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CorrelationId(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IFocusNavigationRequest::HintRect() const { void* value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IFocusNavigationRequest>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IFocusNavigationRequest, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HintRect(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HintRect(&value)); } return winrt::Windows::Foundation::IReference< winrt::Windows::Foundation::Rect>{value, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IFocusNavigationRequest::Reason() const { winrt::Microsoft::UI::Input::FocusNavigationReason value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IFocusNavigationRequest>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IFocusNavigationRequest, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_Reason(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_Reason(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IFocusNavigationRequestEventArgs::Request() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IFocusNavigationRequestEventArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Request(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Request(&value)); } return winrt::Microsoft::UI::Input::FocusNavigationRequest{ value, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IFocusNavigationRequestEventArgs::Result() const { winrt::Microsoft::UI::Input::FocusNavigationResult value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IFocusNavigationRequestEventArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_Result(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_Result(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IFocusNavigationRequestEventArgs::Result( winrt::Microsoft::UI::Input::FocusNavigationResult const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IFocusNavigationRequestEventArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Result(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Result(static_cast(value))); } } template auto consume_Microsoft_UI_Input_IFocusNavigationRequestStatics::Create( winrt::Microsoft::UI::Input::FocusNavigationReason const& reason) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->Create(static_cast(reason), &result)); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics>**)this; check_hresult( _winrt_abi_type->Create(static_cast(reason), &result)); } return winrt::Microsoft::UI::Input::FocusNavigationRequest{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IFocusNavigationRequestStatics::Create( winrt::Microsoft::UI::Input::FocusNavigationReason const& reason, winrt::Windows::Foundation::Rect const& hintRect) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateWithHintRect( static_cast(reason), impl::bind_in(hintRect), &result)); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics>**)this; check_hresult(_winrt_abi_type->CreateWithHintRect( static_cast(reason), impl::bind_in(hintRect), &result)); } return winrt::Microsoft::UI::Input::FocusNavigationRequest{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IFocusNavigationRequestStatics::Create( winrt::Microsoft::UI::Input::FocusNavigationReason const& reason, winrt::Windows::Foundation::Rect const& hintRect, winrt::guid const& correlationId) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateWithHintRectAndId( static_cast(reason), impl::bind_in(hintRect), impl::bind_in(correlationId), &result)); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics>**)this; check_hresult(_winrt_abi_type->CreateWithHintRectAndId( static_cast(reason), impl::bind_in(hintRect), impl::bind_in(correlationId), &result)); } return winrt::Microsoft::UI::Input::FocusNavigationRequest{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::AutoProcessInertia() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AutoProcessInertia(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AutoProcessInertia(&value)); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::AutoProcessInertia( bool value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_AutoProcessInertia(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_AutoProcessInertia(value)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideExact() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CrossSlideExact(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CrossSlideExact(&value)); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideExact( bool value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CrossSlideExact(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CrossSlideExact(value)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideHorizontally() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CrossSlideHorizontally(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CrossSlideHorizontally(&value)); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideHorizontally( bool value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CrossSlideHorizontally(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CrossSlideHorizontally(value)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideThresholds() const { winrt::Microsoft::UI::Input::CrossSlideThresholds value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CrossSlideThresholds(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CrossSlideThresholds(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideThresholds( winrt::Microsoft::UI::Input::CrossSlideThresholds const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->put_CrossSlideThresholds(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->put_CrossSlideThresholds(impl::bind_in(value))); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::GestureSettings() const { winrt::Microsoft::UI::Input::GestureSettings value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_GestureSettings( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_GestureSettings( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::GestureSettings( winrt::Microsoft::UI::Input::GestureSettings const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->put_GestureSettings(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->put_GestureSettings(static_cast(value))); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::IsActive() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsActive(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsActive(&value)); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::IsInertial() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsInertial(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsInertial(&value)); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::PivotCenter() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PivotCenter(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PivotCenter(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::PivotCenter( winrt::Windows::Foundation::Point const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PivotCenter(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PivotCenter(impl::bind_in(value))); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::PivotRadius() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PivotRadius(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PivotRadius(&value)); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::PivotRadius( float value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PivotRadius(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PivotRadius(value)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer< D>::InertiaExpansionDeceleration() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_InertiaExpansionDeceleration(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_InertiaExpansionDeceleration(&value)); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer< D>::InertiaExpansionDeceleration(float value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_InertiaExpansionDeceleration(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_InertiaExpansionDeceleration(value)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaExpansion() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_InertiaExpansion(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_InertiaExpansion(&value)); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaExpansion( float value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_InertiaExpansion(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_InertiaExpansion(value)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaRotationAngle() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_InertiaRotationAngle(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_InertiaRotationAngle(&value)); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaRotationAngle( float value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_InertiaRotationAngle(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_InertiaRotationAngle(value)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer< D>::InertiaRotationDeceleration() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_InertiaRotationDeceleration(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_InertiaRotationDeceleration(&value)); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer< D>::InertiaRotationDeceleration(float value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_InertiaRotationDeceleration(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_InertiaRotationDeceleration(value)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer< D>::InertiaTranslationDeceleration() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_InertiaTranslationDeceleration(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_InertiaTranslationDeceleration(&value)); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer< D>::InertiaTranslationDeceleration(float value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_InertiaTranslationDeceleration(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_InertiaTranslationDeceleration(value)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer< D>::InertiaTranslationDisplacement() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_InertiaTranslationDisplacement(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_InertiaTranslationDisplacement(&value)); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer< D>::InertiaTranslationDisplacement(float value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_InertiaTranslationDisplacement(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_InertiaTranslationDisplacement(value)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationExact() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ManipulationExact(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ManipulationExact(&value)); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationExact( bool value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ManipulationExact(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ManipulationExact(value)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::MouseWheelParameters() const { void* value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MouseWheelParameters(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MouseWheelParameters(&value)); } return winrt::Microsoft::UI::Input::MouseWheelParameters{ value, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ShowGestureFeedback() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ShowGestureFeedback(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ShowGestureFeedback(&value)); } return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ShowGestureFeedback( bool value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ShowGestureFeedback(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ShowGestureFeedback(value)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CanBeDoubleTap( winrt::Microsoft::UI::Input::PointerPoint const& value) const { bool result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CanBeDoubleTap(*(void**)(&value), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CanBeDoubleTap(*(void**)(&value), &result)); } return result; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CompleteGesture() const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CompleteGesture()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CompleteGesture()); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessDownEvent( winrt::Microsoft::UI::Input::PointerPoint const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ProcessDownEvent(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ProcessDownEvent(*(void**)(&value))); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessMoveEvents( param::vector const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ProcessMoveEvents(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ProcessMoveEvents(*(void**)(&value))); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessMouseWheelEvent( winrt::Microsoft::UI::Input::PointerPoint const& value, bool isShiftKeyDown, bool isControlKeyDown) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ProcessMouseWheelEvent( *(void**)(&value), isShiftKeyDown, isControlKeyDown)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ProcessMouseWheelEvent( *(void**)(&value), isShiftKeyDown, isControlKeyDown)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessInertia() const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ProcessInertia()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ProcessInertia()); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessUpEvent( winrt::Microsoft::UI::Input::PointerPoint const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ProcessUpEvent(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ProcessUpEvent(*(void**)(&value))); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Tapped( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::TappedEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->add_Tapped(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->add_Tapped(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Tapped( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::TappedEventArgs> const& handler) const { return impl::make_event_revoker(this, Tapped(handler)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Tapped( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Tapped(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Tapped(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::RightTapped( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::RightTappedEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->add_RightTapped(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->add_RightTapped(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::RightTapped( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::RightTappedEventArgs> const& handler) const { return impl::make_event_revoker(this, RightTapped(handler)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::RightTapped( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_RightTapped(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_RightTapped(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Holding( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::HoldingEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->add_Holding(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->add_Holding(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Holding( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::HoldingEventArgs> const& handler) const { return impl::make_event_revoker(this, Holding(handler)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Holding( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Holding(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Holding(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Dragging( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::DraggingEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->add_Dragging(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->add_Dragging(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Dragging( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::DraggingEventArgs> const& handler) const { return impl::make_event_revoker(this, Dragging(handler)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Dragging( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Dragging(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Dragging(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationStarted( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::ManipulationStartedEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_ManipulationStarted(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_ManipulationStarted(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationStarted( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::ManipulationStartedEventArgs> const& handler) const { return impl::make_event_revoker( this, ManipulationStarted(handler)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationStarted( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_ManipulationStarted(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_ManipulationStarted(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationUpdated( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::ManipulationUpdatedEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_ManipulationUpdated(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_ManipulationUpdated(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationUpdated( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::ManipulationUpdatedEventArgs> const& handler) const { return impl::make_event_revoker( this, ManipulationUpdated(handler)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationUpdated( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_ManipulationUpdated(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_ManipulationUpdated(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer:: ManipulationInertiaStarting( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input:: ManipulationInertiaStartingEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_ManipulationInertiaStarting( *(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_ManipulationInertiaStarting( *(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer:: ManipulationInertiaStarting( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input:: ManipulationInertiaStartingEventArgs> const& handler) const { return impl::make_event_revoker( this, ManipulationInertiaStarting(handler)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer< D>::ManipulationInertiaStarting(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_ManipulationInertiaStarting(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_ManipulationInertiaStarting(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationCompleted( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::ManipulationCompletedEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_ManipulationCompleted( *(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_ManipulationCompleted( *(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationCompleted( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::ManipulationCompletedEventArgs> const& handler) const { return impl::make_event_revoker( this, ManipulationCompleted(handler)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationCompleted( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_ManipulationCompleted(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_ManipulationCompleted(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSliding( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::CrossSlidingEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->add_CrossSliding(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->add_CrossSliding(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSliding( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::GestureRecognizer, winrt::Microsoft::UI::Input::CrossSlidingEventArgs> const& handler) const { return impl::make_event_revoker( this, CrossSliding(handler)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSliding( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_CrossSliding(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_CrossSliding(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IHoldingEventArgs::HoldingState() const { winrt::Microsoft::UI::Input::HoldingState value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IHoldingEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_HoldingState(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_HoldingState(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IHoldingEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IHoldingEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IHoldingEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IHoldingEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IInputActivationListener::State() const { winrt::Microsoft::UI::Input::InputActivationState value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputActivationListener>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputActivationListener, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_State(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_State(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IInputActivationListener:: InputActivationChanged( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputActivationListener, winrt::Microsoft::UI::Input:: InputActivationListenerActivationChangedEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputActivationListener>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputActivationListener, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_InputActivationChanged( *(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_InputActivationChanged( *(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputActivationListener:: InputActivationChanged( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputActivationListener, winrt::Microsoft::UI::Input:: InputActivationListenerActivationChangedEventArgs> const& handler) const { return impl::make_event_revoker( this, InputActivationChanged(handler)); } template auto consume_Microsoft_UI_Input_IInputActivationListener< D>::InputActivationChanged(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputActivationListener>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputActivationListener, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_InputActivationChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_InputActivationChanged(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputActivationListenerStatics< D>::GetForWindowId(winrt::Microsoft::UI::WindowId const& windowId) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputActivationListenerStatics, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->GetForWindowId(impl::bind_in(windowId), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->GetForWindowId(impl::bind_in(windowId), &result)); } return winrt::Microsoft::UI::Input::InputActivationListener{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputActivationListenerStatics2< D>::GetForIsland(winrt::Microsoft::UI::Content::ContentIsland const& island) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputActivationListenerStatics2, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); } return winrt::Microsoft::UI::Input::InputActivationListener{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputCursorStatics::CreateFromCoreCursor( winrt::Windows::UI::Core::CoreCursor const& cursor) const { void* result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputCursorStatics>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputCursorStatics, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->CreateFromCoreCursor(*(void**)(&cursor), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->CreateFromCoreCursor(*(void**)(&cursor), &result)); } return winrt::Microsoft::UI::Input::InputCursor{result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputDesktopNamedResourceCursor< D>::ModuleName() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursor, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ModuleName(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ModuleName(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputDesktopNamedResourceCursor< D>::ResourceName() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursor, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ResourceName(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ResourceName(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputDesktopNamedResourceCursorStatics< D>::Create(param::hstring const& resourceName) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursorStatics, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input:: IInputDesktopNamedResourceCursorStatics>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Create(*(void**)(&resourceName), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Create(*(void**)(&resourceName), &result)); } return winrt::Microsoft::UI::Input::InputDesktopNamedResourceCursor{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputDesktopNamedResourceCursorStatics< D>::CreateFromModule(param::hstring const& moduleName, param::hstring const& resourceName) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursorStatics, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input:: IInputDesktopNamedResourceCursorStatics>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateFromModule( *(void**)(&moduleName), *(void**)(&resourceName), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateFromModule( *(void**)(&moduleName), *(void**)(&resourceName), &result)); } return winrt::Microsoft::UI::Input::InputDesktopNamedResourceCursor{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputDesktopResourceCursor::ModuleName() const { void* value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputDesktopResourceCursor>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputDesktopResourceCursor, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ModuleName(&value)); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_ModuleName(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputDesktopResourceCursor::ResourceId() const { uint32_t value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputDesktopResourceCursor>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputDesktopResourceCursor, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ResourceId(&value)); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_ResourceId(&value)); } return value; } template auto consume_Microsoft_UI_Input_IInputDesktopResourceCursorStatics::Create( uint32_t resourceId) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputDesktopResourceCursorStatics, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Create(resourceId, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Create(resourceId, &result)); } return winrt::Microsoft::UI::Input::InputDesktopResourceCursor{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputDesktopResourceCursorStatics< D>::CreateFromModule(param::hstring const& moduleName, uint32_t resourceId) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputDesktopResourceCursorStatics, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateFromModule(*(void**)(&moduleName), resourceId, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateFromModule(*(void**)(&moduleName), resourceId, &result)); } return winrt::Microsoft::UI::Input::InputDesktopResourceCursor{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputFocusController::HasFocus() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputFocusController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusController, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HasFocus(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HasFocus(&value)); } return value; } template auto consume_Microsoft_UI_Input_IInputFocusController::TrySetFocus() const { bool result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputFocusController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusController, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->TrySetFocus(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->TrySetFocus(&result)); } return result; } template auto consume_Microsoft_UI_Input_IInputFocusController::GotFocus( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputFocusController, winrt::Microsoft::UI::Input::FocusChangedEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputFocusController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusController, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->add_GotFocus(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->add_GotFocus(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputFocusController::GotFocus( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputFocusController, winrt::Microsoft::UI::Input::FocusChangedEventArgs> const& handler) const { return impl::make_event_revoker(this, GotFocus(handler)); } template auto consume_Microsoft_UI_Input_IInputFocusController::GotFocus( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputFocusController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusController, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_GotFocus(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_GotFocus(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputFocusController::LostFocus( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputFocusController, winrt::Microsoft::UI::Input::FocusChangedEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputFocusController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusController, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->add_LostFocus(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->add_LostFocus(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputFocusController::LostFocus( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputFocusController, winrt::Microsoft::UI::Input::FocusChangedEventArgs> const& handler) const { return impl::make_event_revoker(this, LostFocus(handler)); } template auto consume_Microsoft_UI_Input_IInputFocusController::LostFocus( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputFocusController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusController, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_LostFocus(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_LostFocus(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputFocusController2::DepartFocus( winrt::Microsoft::UI::Input::FocusNavigationRequest const& request) const { winrt::Microsoft::UI::Input::FocusNavigationResult result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputFocusController2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusController2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->DepartFocus( *(void**)(&request), reinterpret_cast(&result))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->DepartFocus( *(void**)(&request), reinterpret_cast(&result))); } return result; } template auto consume_Microsoft_UI_Input_IInputFocusController2:: NavigateFocusRequested( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputFocusController, winrt::Microsoft::UI::Input::FocusNavigationRequestEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputFocusController2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusController2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_NavigateFocusRequested( *(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_NavigateFocusRequested( *(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputFocusController2:: NavigateFocusRequested( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputFocusController, winrt::Microsoft::UI::Input::FocusNavigationRequestEventArgs> const& handler) const { return impl::make_event_revoker( this, NavigateFocusRequested(handler)); } template auto consume_Microsoft_UI_Input_IInputFocusController2< D>::NavigateFocusRequested(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputFocusController2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusController2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_NavigateFocusRequested(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_NavigateFocusRequested(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputFocusControllerStatics::GetForIsland( winrt::Microsoft::UI::Content::ContentIsland const& island) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusControllerStatics, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); } return winrt::Microsoft::UI::Input::InputFocusController{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputFocusNavigationHost::ContainsFocus() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputFocusNavigationHost>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusNavigationHost, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ContainsFocus(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ContainsFocus(&value)); } return value; } template auto consume_Microsoft_UI_Input_IInputFocusNavigationHost::NavigateFocus( winrt::Microsoft::UI::Input::FocusNavigationRequest const& request) const { winrt::Microsoft::UI::Input::FocusNavigationResult result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputFocusNavigationHost>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusNavigationHost, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->NavigateFocus( *(void**)(&request), reinterpret_cast(&result))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->NavigateFocus( *(void**)(&request), reinterpret_cast(&result))); } return result; } template auto consume_Microsoft_UI_Input_IInputFocusNavigationHost:: DepartFocusRequested( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputFocusNavigationHost, winrt::Microsoft::UI::Input::FocusNavigationRequestEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputFocusNavigationHost>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusNavigationHost, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_DepartFocusRequested(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_DepartFocusRequested(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputFocusNavigationHost:: DepartFocusRequested( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputFocusNavigationHost, winrt::Microsoft::UI::Input::FocusNavigationRequestEventArgs> const& handler) const { return impl::make_event_revoker( this, DepartFocusRequested(handler)); } template auto consume_Microsoft_UI_Input_IInputFocusNavigationHost< D>::DepartFocusRequested(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputFocusNavigationHost>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusNavigationHost, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_DepartFocusRequested(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_DepartFocusRequested(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputFocusNavigationHostStatics:: GetForSiteBridge( winrt::Microsoft::UI::Content::IContentSiteBridge const& site) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusNavigationHostStatics, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetForSiteBridge(*(void**)(&site), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetForSiteBridge(*(void**)(&site), &result)); } return winrt::Microsoft::UI::Input::InputFocusNavigationHost{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputFocusNavigationHostStatics2< D>::GetForSiteLink(winrt::Microsoft::UI::Content::IContentSiteLink const& contentSiteLink) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputFocusNavigationHostStatics2, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->GetForSiteLink(*(void**)(&contentSiteLink), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->GetForSiteLink(*(void**)(&contentSiteLink), &result)); } return winrt::Microsoft::UI::Input::InputFocusNavigationHost{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::GetCurrentKeyState( winrt::Windows::System::VirtualKey const& virtualKey) const { winrt::Microsoft::UI::Input::VirtualKeyStates result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetCurrentKeyState( static_cast(virtualKey), reinterpret_cast(&result))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetCurrentKeyState( static_cast(virtualKey), reinterpret_cast(&result))); } return result; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::GetKeyState( winrt::Windows::System::VirtualKey const& virtualKey) const { winrt::Microsoft::UI::Input::VirtualKeyStates result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->GetKeyState(static_cast(virtualKey), reinterpret_cast(&result))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->GetKeyState(static_cast(virtualKey), reinterpret_cast(&result))); } return result; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::CharacterReceived( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputKeyboardSource, winrt::Microsoft::UI::Input::CharacterReceivedEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_CharacterReceived(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_CharacterReceived(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::CharacterReceived( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputKeyboardSource, winrt::Microsoft::UI::Input::CharacterReceivedEventArgs> const& handler) const { return impl::make_event_revoker( this, CharacterReceived(handler)); } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::CharacterReceived( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_CharacterReceived(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_CharacterReceived(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::ContextMenuKey( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputKeyboardSource, winrt::Microsoft::UI::Input::ContextMenuKeyEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_ContextMenuKey(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_ContextMenuKey(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::ContextMenuKey( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputKeyboardSource, winrt::Microsoft::UI::Input::ContextMenuKeyEventArgs> const& handler) const { return impl::make_event_revoker( this, ContextMenuKey(handler)); } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::ContextMenuKey( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_ContextMenuKey(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_ContextMenuKey(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyDown( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputKeyboardSource, winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->add_KeyDown(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->add_KeyDown(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyDown( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputKeyboardSource, winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { return impl::make_event_revoker(this, KeyDown(handler)); } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyDown( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_KeyDown(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_KeyDown(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyUp( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputKeyboardSource, winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->add_KeyUp(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->add_KeyUp(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyUp( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputKeyboardSource, winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { return impl::make_event_revoker(this, KeyUp(handler)); } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyUp( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_KeyUp(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_KeyUp(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyDown( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputKeyboardSource, winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_SystemKeyDown(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_SystemKeyDown(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyDown( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputKeyboardSource, winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { return impl::make_event_revoker( this, SystemKeyDown(handler)); } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyDown( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_SystemKeyDown(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_SystemKeyDown(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyUp( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputKeyboardSource, winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->add_SystemKeyUp(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->add_SystemKeyUp(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyUp( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputKeyboardSource, winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { return impl::make_event_revoker(this, SystemKeyUp(handler)); } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyUp( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_SystemKeyUp(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_SystemKeyUp(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputKeyboardSourceStatics< D>::GetKeyStateForCurrentThread(winrt::Windows::System::VirtualKey const& virtualKey) const { winrt::Windows::UI::Core::CoreVirtualKeyStates result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputKeyboardSourceStatics>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSourceStatics, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetKeyStateForCurrentThread( static_cast(virtualKey), reinterpret_cast(&result))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->GetKeyStateForCurrentThread( static_cast(virtualKey), reinterpret_cast(&result))); } return result; } template auto consume_Microsoft_UI_Input_IInputKeyboardSourceStatics2::GetForIsland( winrt::Microsoft::UI::Content::ContentIsland const& island) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputKeyboardSourceStatics2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); } return winrt::Microsoft::UI::Input::InputKeyboardSource{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputLightDismissAction::Dismissed( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputLightDismissAction, winrt::Microsoft::UI::Input::InputLightDismissEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputLightDismissAction>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputLightDismissAction, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->add_Dismissed(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->add_Dismissed(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputLightDismissAction::Dismissed( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputLightDismissAction, winrt::Microsoft::UI::Input::InputLightDismissEventArgs> const& handler) const { return impl::make_event_revoker(this, Dismissed(handler)); } template auto consume_Microsoft_UI_Input_IInputLightDismissAction::Dismissed( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputLightDismissAction>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputLightDismissAction, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Dismissed(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Dismissed(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputLightDismissActionStatics< D>::GetForWindowId(winrt::Microsoft::UI::WindowId const& windowId) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputLightDismissActionStatics, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->GetForWindowId(impl::bind_in(windowId), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->GetForWindowId(impl::bind_in(windowId), &result)); } return winrt::Microsoft::UI::Input::InputLightDismissAction{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource< D>::DispatcherQueue() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); } return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ value, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource< D>::ClearAllRegionRects() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ClearAllRegionRects()); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->ClearAllRegionRects()); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource< D>::ClearRegionRects(winrt::Microsoft::UI::Input::NonClientRegionKind const& region) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->ClearRegionRects(static_cast(region))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult( _winrt_abi_type->ClearRegionRects(static_cast(region))); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::GetRegionRects( winrt::Microsoft::UI::Input::NonClientRegionKind const& region) const { uint32_t result_impl_size{}; struct struct_Windows_Graphics_RectInt32* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetRegionRects(static_cast(region), &result_impl_size, &result)); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->GetRegionRects(static_cast(region), &result_impl_size, &result)); } return com_array{ result, result_impl_size, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::SetRegionRects( winrt::Microsoft::UI::Input::NonClientRegionKind const& region, array_view rects) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetRegionRects( static_cast(region), rects.size(), get_abi(rects))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->SetRegionRects( static_cast(region), rects.size(), get_abi(rects))); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::CaptionTapped( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::NonClientCaptionTappedEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_CaptionTapped(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->add_CaptionTapped(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::CaptionTapped( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::NonClientCaptionTappedEventArgs> const& handler) const { return impl::make_event_revoker( this, CaptionTapped(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::CaptionTapped( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_CaptionTapped(impl::bind_in(token)); } else { auto const _winrt_abi_type = *( abi_t**)this; _winrt_abi_type->remove_CaptionTapped(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerEntered( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_PointerEntered(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->add_PointerEntered(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerEntered( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerEntered(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerEntered( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerEntered(impl::bind_in(token)); } else { auto const _winrt_abi_type = *( abi_t**)this; _winrt_abi_type->remove_PointerEntered(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerExited( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_PointerExited(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->add_PointerExited(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerExited( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerExited(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerExited( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerExited(impl::bind_in(token)); } else { auto const _winrt_abi_type = *( abi_t**)this; _winrt_abi_type->remove_PointerExited(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerMoved( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->add_PointerMoved(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult( _winrt_abi_type->add_PointerMoved(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerMoved( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerMoved(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerMoved( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerMoved(impl::bind_in(token)); } else { auto const _winrt_abi_type = *( abi_t**)this; _winrt_abi_type->remove_PointerMoved(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerPressed( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_PointerPressed(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->add_PointerPressed(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerPressed( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerPressed(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerPressed( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerPressed(impl::bind_in(token)); } else { auto const _winrt_abi_type = *( abi_t**)this; _winrt_abi_type->remove_PointerPressed(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource:: PointerReleased( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_PointerReleased(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->add_PointerReleased(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource:: PointerReleased( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerReleased(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource< D>::PointerReleased(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerReleased(impl::bind_in(token)); } else { auto const _winrt_abi_type = *( abi_t**)this; _winrt_abi_type->remove_PointerReleased(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::RegionsChanged( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::NonClientRegionsChangedEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_RegionsChanged(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->add_RegionsChanged(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::RegionsChanged( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::NonClientRegionsChangedEventArgs> const& handler) const { return impl::make_event_revoker( this, RegionsChanged(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::RegionsChanged( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_RegionsChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *( abi_t**)this; _winrt_abi_type->remove_RegionsChanged(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: EnteringMoveSize( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::EnteringMoveSizeEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_EnteringMoveSize(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; check_hresult(_winrt_abi_type->add_EnteringMoveSize(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: EnteringMoveSize( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::EnteringMoveSizeEventArgs> const& handler) const { return impl::make_event_revoker( this, EnteringMoveSize(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2< D>::EnteringMoveSize(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_EnteringMoveSize(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; _winrt_abi_type->remove_EnteringMoveSize(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: EnteredMoveSize( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::EnteredMoveSizeEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_EnteredMoveSize(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; check_hresult(_winrt_abi_type->add_EnteredMoveSize(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: EnteredMoveSize( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::EnteredMoveSizeEventArgs> const& handler) const { return impl::make_event_revoker( this, EnteredMoveSize(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2< D>::EnteredMoveSize(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_EnteredMoveSize(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; _winrt_abi_type->remove_EnteredMoveSize(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: WindowRectChanging( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::WindowRectChangingEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_WindowRectChanging(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; check_hresult(_winrt_abi_type->add_WindowRectChanging(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: WindowRectChanging( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::WindowRectChangingEventArgs> const& handler) const { return impl::make_event_revoker( this, WindowRectChanging(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2< D>::WindowRectChanging(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_WindowRectChanging(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; _winrt_abi_type->remove_WindowRectChanging(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: WindowRectChanged( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::WindowRectChangedEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_WindowRectChanged(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; check_hresult(_winrt_abi_type->add_WindowRectChanged(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: WindowRectChanged( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::WindowRectChangedEventArgs> const& handler) const { return impl::make_event_revoker( this, WindowRectChanged(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2< D>::WindowRectChanged(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_WindowRectChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; _winrt_abi_type->remove_WindowRectChanged(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: ExitedMoveSize(winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::ExitedMoveSizeEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_ExitedMoveSize(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; check_hresult(_winrt_abi_type->add_ExitedMoveSize(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: ExitedMoveSize( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputNonClientPointerSource, winrt::Microsoft::UI::Input::ExitedMoveSizeEventArgs> const& handler) const { return impl::make_event_revoker( this, ExitedMoveSize(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2< D>::ExitedMoveSize(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_ExitedMoveSize(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; _winrt_abi_type->remove_ExitedMoveSize(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSourceStatics< D>::GetForWindowId(winrt::Microsoft::UI::WindowId const& windowId) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputNonClientPointerSourceStatics, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *( abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->GetForWindowId(impl::bind_in(windowId), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->GetForWindowId(impl::bind_in(windowId), &result)); } return winrt::Microsoft::UI::Input::InputNonClientPointerSource{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputObject::DispatcherQueue() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IInputObject>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); } return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ value, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputPointerSource::Cursor() const { void* value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Cursor(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Cursor(&value)); } return winrt::Microsoft::UI::Input::InputCursor{value, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputPointerSource::Cursor( winrt::Microsoft::UI::Input::InputCursor const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Cursor(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Cursor(*(void**)(&value))); } } template auto consume_Microsoft_UI_Input_IInputPointerSource::DeviceKinds() const { winrt::Microsoft::UI::Input::InputPointerSourceDeviceKinds value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_DeviceKinds(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_DeviceKinds(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerCaptureLost( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_PointerCaptureLost(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_PointerCaptureLost(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerCaptureLost( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerCaptureLost(handler)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerCaptureLost( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerCaptureLost(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_PointerCaptureLost(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerEntered( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_PointerEntered(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_PointerEntered(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerEntered( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerEntered(handler)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerEntered( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerEntered(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_PointerEntered(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerExited( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_PointerExited(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_PointerExited(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerExited( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerExited(handler)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerExited( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerExited(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_PointerExited(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerMoved( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->add_PointerMoved(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->add_PointerMoved(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerMoved( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerMoved(handler)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerMoved( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerMoved(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_PointerMoved(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerPressed( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_PointerPressed(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_PointerPressed(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerPressed( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerPressed(handler)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerPressed( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerPressed(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_PointerPressed(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerReleased( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_PointerReleased(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_PointerReleased(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerReleased( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerReleased(handler)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerReleased( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerReleased(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_PointerReleased(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedAway( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_PointerRoutedAway(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_PointerRoutedAway(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedAway( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerRoutedAway(handler)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedAway( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerRoutedAway(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_PointerRoutedAway(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedReleased( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_PointerRoutedReleased( *(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_PointerRoutedReleased( *(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedReleased( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerRoutedReleased(handler)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedReleased( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerRoutedReleased(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_PointerRoutedReleased(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedTo( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_PointerRoutedTo(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_PointerRoutedTo(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedTo( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerRoutedTo(handler)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedTo( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerRoutedTo(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_PointerRoutedTo(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerWheelChanged( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_PointerWheelChanged(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_PointerWheelChanged(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerWheelChanged( auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Input::InputPointerSource, winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { return impl::make_event_revoker( this, PointerWheelChanged(handler)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerWheelChanged( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSource>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PointerWheelChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_PointerWheelChanged(impl::bind_in(token)); } } template auto consume_Microsoft_UI_Input_IInputPointerSourceStatics::GetForIsland( winrt::Microsoft::UI::Content::ContentIsland const& island) const { void* result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputPointerSourceStatics>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPointerSourceStatics, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); } return winrt::Microsoft::UI::Input::InputPointerSource{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputPreTranslateKeyboardSourceStatics< D>::GetForIsland(winrt::Microsoft::UI::Content::ContentIsland const& island) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputPreTranslateKeyboardSourceStatics, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input:: IInputPreTranslateKeyboardSourceStatics>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); } return winrt::Microsoft::UI::Input::InputPreTranslateKeyboardSource{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IInputSystemCursor::CursorShape() const { winrt::Microsoft::UI::Input::InputSystemCursorShape value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputSystemCursor>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputSystemCursor, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_CursorShape(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_CursorShape(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IInputSystemCursorStatics::Create( winrt::Microsoft::UI::Input::InputSystemCursorShape const& type) const { void* result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IInputSystemCursorStatics>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IInputSystemCursorStatics, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Create(static_cast(type), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Create(static_cast(type), &result)); } return winrt::Microsoft::UI::Input::InputSystemCursor{ result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IKeyEventArgs::Handled() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IKeyEventArgs>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Handled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Handled(&value)); } return value; } template auto consume_Microsoft_UI_Input_IKeyEventArgs::Handled(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IKeyEventArgs>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Handled(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Handled(value)); } } template auto consume_Microsoft_UI_Input_IKeyEventArgs::KeyStatus() const { winrt::Microsoft::UI::Input::PhysicalKeyStatus value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IKeyEventArgs>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_KeyStatus(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_KeyStatus(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IKeyEventArgs::Timestamp() const { uint64_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IKeyEventArgs>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Timestamp(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Timestamp(&value)); } return value; } template auto consume_Microsoft_UI_Input_IKeyEventArgs::VirtualKey() const { winrt::Windows::System::VirtualKey value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IKeyEventArgs>**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_VirtualKey(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_VirtualKey(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationCompletedEventArgs::Cumulative() const { winrt::Microsoft::UI::Input::ManipulationDelta value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationCompletedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationCompletedEventArgs< D>::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationCompletedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationCompletedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationCompletedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationCompletedEventArgs::Velocities() const { winrt::Microsoft::UI::Input::ManipulationVelocities value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationCompletedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs< D>::Cumulative() const { winrt::Microsoft::UI::Input::ManipulationDelta value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input:: IManipulationInertiaStartingEventArgs>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs< D>::Delta() const { winrt::Microsoft::UI::Input::ManipulationDelta value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input:: IManipulationInertiaStartingEventArgs>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Delta(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Delta(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs< D>::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input:: IManipulationInertiaStartingEventArgs>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs< D>::Position() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input:: IManipulationInertiaStartingEventArgs>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs< D>::Velocities() const { winrt::Microsoft::UI::Input::ManipulationVelocities value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input:: IManipulationInertiaStartingEventArgs>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationStartedEventArgs::Cumulative() const { winrt::Microsoft::UI::Input::ManipulationDelta value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationStartedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IManipulationStartedEventArgs>**)this; check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationStartedEventArgs< D>::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationStartedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IManipulationStartedEventArgs>**)this; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationStartedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationStartedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IManipulationStartedEventArgs>**)this; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs::Cumulative() const { winrt::Microsoft::UI::Input::ManipulationDelta value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs>**)this; check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs::Delta() const { winrt::Microsoft::UI::Input::ManipulationDelta value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Delta(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs>**)this; check_hresult(_winrt_abi_type->get_Delta(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs< D>::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs>**)this; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs>**)this; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs::Velocities() const { winrt::Microsoft::UI::Input::ManipulationVelocities value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs>**)this; check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::CharTranslation() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CharTranslation(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CharTranslation(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::CharTranslation( winrt::Windows::Foundation::Point const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CharTranslation(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CharTranslation(impl::bind_in(value))); } } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::DeltaScale() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DeltaScale(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DeltaScale(&value)); } return value; } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::DeltaScale( float value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_DeltaScale(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DeltaScale(value)); } } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::DeltaRotationAngle() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DeltaRotationAngle(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DeltaRotationAngle(&value)); } return value; } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::DeltaRotationAngle( float value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_DeltaRotationAngle(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DeltaRotationAngle(value)); } } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::PageTranslation() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PageTranslation(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PageTranslation(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::PageTranslation( winrt::Windows::Foundation::Point const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PageTranslation(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PageTranslation(impl::bind_in(value))); } } template auto consume_Microsoft_UI_Input_INonClientCaptionTappedEventArgs::Point() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::INonClientCaptionTappedEventArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Point(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Point(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_INonClientCaptionTappedEventArgs< D>::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::INonClientCaptionTappedEventArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_INonClientPointerEventArgs::Point() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::INonClientPointerEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::INonClientPointerEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Point(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Point(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_INonClientPointerEventArgs< D>::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::INonClientPointerEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::INonClientPointerEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_INonClientPointerEventArgs::RegionKind() const { winrt::Microsoft::UI::Input::NonClientRegionKind value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::INonClientPointerEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::INonClientPointerEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_RegionKind(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_RegionKind(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_INonClientPointerEventArgs::IsPointInRegion() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::INonClientPointerEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::INonClientPointerEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsPointInRegion(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsPointInRegion(&value)); } return value; } template auto consume_Microsoft_UI_Input_INonClientRegionsChangedEventArgs< D>::ChangedRegions() const { uint32_t value_impl_size{}; int32_t* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::INonClientRegionsChangedEventArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_ChangedRegions(&value_impl_size, &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_ChangedRegions(&value_impl_size, &value)); } return com_array{ value, value_impl_size, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IPointerEventArgs::CurrentPoint() const { void* value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CurrentPoint(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CurrentPoint(&value)); } return winrt::Microsoft::UI::Input::PointerPoint{value, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IPointerEventArgs::Handled() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Handled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Handled(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerEventArgs::Handled( bool value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Handled(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Handled(value)); } } template auto consume_Microsoft_UI_Input_IPointerEventArgs::KeyModifiers() const { winrt::Windows::System::VirtualKeyModifiers value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_KeyModifiers(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_KeyModifiers(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IPointerEventArgs::GetIntermediatePoints() const { void* result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetIntermediatePoints(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetIntermediatePoints(&result)); } return winrt::Windows::Foundation::Collections::IVector< winrt::Microsoft::UI::Input::PointerPoint>{result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IPointerEventArgs:: GetIntermediateTransformedPoints( winrt::Microsoft::UI::Input::IPointerPointTransform const& transform) const { void* result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetIntermediateTransformedPoints( *(void**)(&transform), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetIntermediateTransformedPoints( *(void**)(&transform), &result)); } return winrt::Windows::Foundation::Collections::IVector< winrt::Microsoft::UI::Input::PointerPoint>{result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IPointerPoint::FrameId() const { uint32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FrameId(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FrameId(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPoint::IsInContact() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsInContact(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsInContact(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPoint::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IPointerPoint::PointerId() const { uint32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerId(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerId(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPoint::Position() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IPointerPoint::Properties() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Properties(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Properties(&value)); } return winrt::Microsoft::UI::Input::PointerPointProperties{ value, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IPointerPoint::Timestamp() const { uint64_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Timestamp(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Timestamp(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPoint::GetTransformedPoint( winrt::Microsoft::UI::Input::IPointerPointTransform const& transform) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; check_hresult( _winrt_abi_type->GetTransformedPoint(*(void**)(&transform), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->GetTransformedPoint(*(void**)(&transform), &result)); } return winrt::Microsoft::UI::Input::PointerPoint{result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::ContactRect() const { winrt::Windows::Foundation::Rect value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ContactRect(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ContactRect(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties< D>::IsBarrelButtonPressed() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsBarrelButtonPressed(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsBarrelButtonPressed(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsCanceled() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsCanceled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsCanceled(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsEraser() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsEraser(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsEraser(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties< D>::IsHorizontalMouseWheel() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsHorizontalMouseWheel(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsHorizontalMouseWheel(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsInRange() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsInRange(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsInRange(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsInverted() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsInverted(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsInverted(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties< D>::IsLeftButtonPressed() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsLeftButtonPressed(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsLeftButtonPressed(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties< D>::IsMiddleButtonPressed() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsMiddleButtonPressed(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsMiddleButtonPressed(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsPrimary() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsPrimary(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsPrimary(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties< D>::IsRightButtonPressed() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsRightButtonPressed(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsRightButtonPressed(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsXButton1Pressed() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsXButton1Pressed(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsXButton1Pressed(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsXButton2Pressed() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsXButton2Pressed(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsXButton2Pressed(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::MouseWheelDelta() const { int32_t value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MouseWheelDelta(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MouseWheelDelta(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::Orientation() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Orientation(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Orientation(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::PointerUpdateKind() const { winrt::Microsoft::UI::Input::PointerUpdateKind value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerUpdateKind( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerUpdateKind( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::Pressure() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Pressure(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Pressure(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::TouchConfidence() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_TouchConfidence(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_TouchConfidence(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::Twist() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Twist(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Twist(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::XTilt() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_XTilt(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_XTilt(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::YTilt() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_YTilt(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_YTilt(&value)); } return value; } template auto consume_Microsoft_UI_Input_IPointerPointTransform::Inverse() const { void* value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointTransform>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointTransform, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Inverse(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Inverse(&value)); } return winrt::Microsoft::UI::Input::IPointerPointTransform{ value, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IPointerPointTransform::TryTransform( winrt::Windows::Foundation::Point const& inPoint, winrt::Windows::Foundation::Point& outPoint) const { bool result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointTransform>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointTransform, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->TryTransform( impl::bind_in(inPoint), impl::bind_out(outPoint), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->TryTransform( impl::bind_in(inPoint), impl::bind_out(outPoint), &result)); } return result; } template auto consume_Microsoft_UI_Input_IPointerPointTransform::TryTransformBounds( winrt::Windows::Foundation::Rect const& inRect, winrt::Windows::Foundation::Rect& outRect) const { bool result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPointTransform>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPointTransform, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->TryTransformBounds( impl::bind_in(inRect), impl::bind_out(outRect), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->TryTransformBounds( impl::bind_in(inRect), impl::bind_out(outRect), &result)); } return result; } template auto consume_Microsoft_UI_Input_IPointerPredictor::PredictionTime() const { winrt::Windows::Foundation::TimeSpan value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPredictor>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PredictionTime(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PredictionTime(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IPointerPredictor::PredictionTime( winrt::Windows::Foundation::TimeSpan const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPredictor>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PredictionTime(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PredictionTime(impl::bind_in(value))); } } template auto consume_Microsoft_UI_Input_IPointerPredictor::GetPredictedPoints( winrt::Microsoft::UI::Input::PointerPoint const& point) const { uint32_t result_impl_size{}; void** result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPredictor>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetPredictedPoints( *(void**)(&point), &result_impl_size, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetPredictedPoints( *(void**)(&point), &result_impl_size, &result)); } return com_array{ result, result_impl_size, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IPointerPredictorStatics:: CreateForInputPointerSource( winrt::Microsoft::UI::Input::InputPointerSource const& inputPointerSource) const { void* result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IPointerPredictorStatics>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IPointerPredictorStatics, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateForInputPointerSource( *(void**)(&inputPointerSource), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateForInputPointerSource( *(void**)(&inputPointerSource), &result)); } return winrt::Microsoft::UI::Input::PointerPredictor{result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Input_IRightTappedEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IRightTappedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IRightTappedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IRightTappedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IRightTappedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IRightTappedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_ITappedEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::ITappedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerDeviceType( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_ITappedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::ITappedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_ITappedEventArgs::TapCount() const { uint32_t value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::ITappedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_TapCount(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_TapCount(&value)); } return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangedEventArgs< D>::PointerScreenPoint() const { winrt::Windows::Graphics::PointInt32 value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangedEventArgs< D>::MoveSizeOperation() const { winrt::Microsoft::UI::Input::MoveSizeOperation value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MoveSizeOperation( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_MoveSizeOperation( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangedEventArgs::OldWindowRect() const { winrt::Windows::Graphics::RectInt32 value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OldWindowRect(put_abi(value))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_OldWindowRect(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangedEventArgs::NewWindowRect() const { winrt::Windows::Graphics::RectInt32 value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_NewWindowRect(put_abi(value))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_NewWindowRect(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs< D>::PointerScreenPoint() const { winrt::Windows::Graphics::PointInt32 value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs< D>::MoveSizeOperation() const { winrt::Microsoft::UI::Input::MoveSizeOperation value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MoveSizeOperation( reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_MoveSizeOperation( reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::OldWindowRect() const { winrt::Windows::Graphics::RectInt32 value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OldWindowRect(put_abi(value))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_OldWindowRect(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::NewWindowRect() const { winrt::Windows::Graphics::RectInt32 value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_NewWindowRect(put_abi(value))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_NewWindowRect(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::NewWindowRect( winrt::Windows::Graphics::RectInt32 const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_NewWindowRect(impl::bind_in(value))); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->put_NewWindowRect(impl::bind_in(value))); } } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs< D>::AllowRectChange() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AllowRectChange(&value)); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_AllowRectChange(&value)); } return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs< D>::AllowRectChange(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_AllowRectChange(value)); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->put_AllowRectChange(value)); } } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::ShowWindow() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ShowWindow(&value)); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->get_ShowWindow(&value)); } return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::ShowWindow( bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ShowWindow(value)); } else { auto const _winrt_abi_type = *( abi_t**)this; check_hresult(_winrt_abi_type->put_ShowWindow(value)); } } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyCode(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyCode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyStatus( struct struct_Microsoft_UI_Input_PhysicalKeyStatus* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().KeyStatus()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CrossSlidingState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().CrossSlidingState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerDeviceType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Position( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Position()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DraggingState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().DraggingState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerDeviceType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Position( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Position()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PointerScreenPoint( struct struct_Windows_Graphics_PointInt32* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerScreenPoint()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MoveSizeOperation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().MoveSizeOperation()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PointerScreenPoint( struct struct_Windows_Graphics_PointInt32* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerScreenPoint()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MoveSizeOperation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().MoveSizeOperation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MoveSizeWindowId( struct struct_Microsoft_UI_WindowId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().MoveSizeWindowId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MoveSizeWindowId( struct struct_Microsoft_UI_WindowId value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MoveSizeWindowId( *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PointerScreenPoint( struct struct_Windows_Graphics_PointInt32* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerScreenPoint()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MoveSizeOperation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().MoveSizeOperation()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CorrelationId(winrt::guid* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CorrelationId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HintRect(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().HintRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Reason(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Reason()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::UI::Input::IFocusNavigationRequestEventArgs> { int32_t __stdcall get_Request(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Request()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Result(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Result()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Result(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Result( *reinterpret_cast< winrt::Microsoft::UI::Input::FocusNavigationResult const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics> { int32_t __stdcall Create(int32_t reason, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().Create( *reinterpret_cast< winrt::Microsoft::UI::Input::FocusNavigationReason const*>( &reason))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithHintRect( int32_t reason, winrt::Windows::Foundation::Rect hintRect, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().Create( *reinterpret_cast< winrt::Microsoft::UI::Input::FocusNavigationReason const*>( &reason), *reinterpret_cast( &hintRect))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithHintRectAndId( int32_t reason, winrt::Windows::Foundation::Rect hintRect, winrt::guid correlationId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().Create( *reinterpret_cast< winrt::Microsoft::UI::Input::FocusNavigationReason const*>( &reason), *reinterpret_cast( &hintRect), *reinterpret_cast(&correlationId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AutoProcessInertia(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AutoProcessInertia()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AutoProcessInertia(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AutoProcessInertia(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CrossSlideExact(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CrossSlideExact()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CrossSlideExact(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CrossSlideExact(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CrossSlideHorizontally(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CrossSlideHorizontally()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CrossSlideHorizontally(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CrossSlideHorizontally(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CrossSlideThresholds( struct struct_Microsoft_UI_Input_CrossSlideThresholds* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().CrossSlideThresholds()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CrossSlideThresholds( struct struct_Microsoft_UI_Input_CrossSlideThresholds value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CrossSlideThresholds( *reinterpret_cast< winrt::Microsoft::UI::Input::CrossSlideThresholds const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GestureSettings(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().GestureSettings()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_GestureSettings(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().GestureSettings( *reinterpret_cast( &value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsActive(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsActive()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsInertial(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsInertial()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PivotCenter( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PivotCenter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PivotCenter( winrt::Windows::Foundation::Point value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PivotCenter( *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PivotRadius(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PivotRadius()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PivotRadius(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PivotRadius(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InertiaExpansionDeceleration( float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InertiaExpansionDeceleration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InertiaExpansionDeceleration(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InertiaExpansionDeceleration(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InertiaExpansion(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InertiaExpansion()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InertiaExpansion(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InertiaExpansion(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InertiaRotationAngle(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InertiaRotationAngle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InertiaRotationAngle(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InertiaRotationAngle(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InertiaRotationDeceleration(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InertiaRotationDeceleration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InertiaRotationDeceleration(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InertiaRotationDeceleration(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InertiaTranslationDeceleration( float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InertiaTranslationDeceleration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InertiaTranslationDeceleration( float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InertiaTranslationDeceleration(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InertiaTranslationDisplacement( float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InertiaTranslationDisplacement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InertiaTranslationDisplacement( float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InertiaTranslationDisplacement(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ManipulationExact(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ManipulationExact()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ManipulationExact(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ManipulationExact(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MouseWheelParameters(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().MouseWheelParameters()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ShowGestureFeedback(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShowGestureFeedback()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ShowGestureFeedback(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowGestureFeedback(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CanBeDoubleTap(void* value, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CanBeDoubleTap( *reinterpret_cast( &value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CompleteGesture() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CompleteGesture(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ProcessDownEvent(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProcessDownEvent( *reinterpret_cast( &value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ProcessMoveEvents(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProcessMoveEvents( *reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ProcessMouseWheelEvent(void* value, bool isShiftKeyDown, bool isControlKeyDown) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProcessMouseWheelEvent( *reinterpret_cast( &value), isShiftKeyDown, isControlKeyDown); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ProcessInertia() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProcessInertia(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ProcessUpEvent(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProcessUpEvent( *reinterpret_cast( &value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Tapped(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Tapped( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Tapped(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Tapped(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_RightTapped(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().RightTapped( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_RightTapped( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().RightTapped( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Holding(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Holding( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Holding(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Holding(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Dragging(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Dragging( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Dragging(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Dragging(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ManipulationStarted( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ManipulationStarted( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ManipulationStarted( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ManipulationStarted( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ManipulationUpdated( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ManipulationUpdated( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ManipulationUpdated( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ManipulationUpdated( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ManipulationInertiaStarting( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from( this->shim().ManipulationInertiaStarting( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ManipulationInertiaStarting( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ManipulationInertiaStarting( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ManipulationCompleted( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ManipulationCompleted( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ManipulationCompleted( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ManipulationCompleted( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_CrossSliding(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CrossSliding( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CrossSliding( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CrossSliding( *reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_HoldingState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().HoldingState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerDeviceType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Position( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Position()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_State(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().State()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_InputActivationChanged( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().InputActivationChanged( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_InputActivationChanged( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().InputActivationChanged( *reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::UI::Input::IInputActivationListenerStatics> { int32_t __stdcall GetForWindowId(struct struct_Microsoft_UI_WindowId windowId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetForWindowId( *reinterpret_cast( &windowId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::UI::Input::IInputActivationListenerStatics2> { int32_t __stdcall GetForIsland(void* island, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetForIsland( *reinterpret_cast< winrt::Microsoft::UI::Content::ContentIsland const*>(&island))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base {}; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base {}; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateFromCoreCursor(void* cursor, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().CreateFromCoreCursor( *reinterpret_cast( &cursor))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base {}; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursor> { int32_t __stdcall get_ModuleName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ModuleName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ResourceName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ResourceName()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursorStatics> : produce_base { int32_t __stdcall Create(void* resourceName, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from< winrt::Microsoft::UI::Input::InputDesktopNamedResourceCursor>( this->shim().Create(*reinterpret_cast(&resourceName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFromModule(void* moduleName, void* resourceName, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from< winrt::Microsoft::UI::Input::InputDesktopNamedResourceCursor>( this->shim().CreateFromModule( *reinterpret_cast(&moduleName), *reinterpret_cast(&resourceName))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ModuleName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ModuleName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ResourceId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ResourceId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::UI::Input::IInputDesktopResourceCursorStatics> { int32_t __stdcall Create(uint32_t resourceId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().Create(resourceId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFromModule(void* moduleName, uint32_t resourceId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().CreateFromModule( *reinterpret_cast(&moduleName), resourceId)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_HasFocus(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasFocus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TrySetFocus(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TrySetFocus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_GotFocus(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().GotFocus( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_GotFocus(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().GotFocus(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_LostFocus(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().LostFocus( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_LostFocus(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().LostFocus( *reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall DepartFocus(void* request, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().DepartFocus( *reinterpret_cast< winrt::Microsoft::UI::Input::FocusNavigationRequest const*>( &request))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_NavigateFocusRequested( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().NavigateFocusRequested( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_NavigateFocusRequested( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().NavigateFocusRequested( *reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForIsland(void* island, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetForIsland( *reinterpret_cast< winrt::Microsoft::UI::Content::ContentIsland const*>(&island))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContainsFocus(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContainsFocus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NavigateFocus(void* request, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().NavigateFocus( *reinterpret_cast< winrt::Microsoft::UI::Input::FocusNavigationRequest const*>( &request))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_DepartFocusRequested( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DepartFocusRequested( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DepartFocusRequested( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DepartFocusRequested( *reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::UI::Input::IInputFocusNavigationHostStatics> { int32_t __stdcall GetForSiteBridge(void* site, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetForSiteBridge( *reinterpret_cast< winrt::Microsoft::UI::Content::IContentSiteBridge const*>( &site))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::UI::Input::IInputFocusNavigationHostStatics2> { int32_t __stdcall GetForSiteLink(void* contentSiteLink, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetForSiteLink( *reinterpret_cast< winrt::Microsoft::UI::Content::IContentSiteLink const*>( &contentSiteLink))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base {}; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetCurrentKeyState(int32_t virtualKey, uint32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetCurrentKeyState( *reinterpret_cast( &virtualKey))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetKeyState(int32_t virtualKey, uint32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetKeyState( *reinterpret_cast( &virtualKey))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_CharacterReceived( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CharacterReceived( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CharacterReceived( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CharacterReceived( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ContextMenuKey(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ContextMenuKey( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ContextMenuKey( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ContextMenuKey( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_KeyDown(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().KeyDown( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_KeyDown(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().KeyDown(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_KeyUp(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().KeyUp( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_KeyUp(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().KeyUp(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_SystemKeyDown(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SystemKeyDown( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SystemKeyDown( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SystemKeyDown( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_SystemKeyUp(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SystemKeyUp( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SystemKeyUp( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SystemKeyUp( *reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetKeyStateForCurrentThread(int32_t virtualKey, uint32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetKeyStateForCurrentThread( *reinterpret_cast( &virtualKey))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForIsland(void* island, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetForIsland( *reinterpret_cast< winrt::Microsoft::UI::Content::ContentIsland const*>(&island))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_Dismissed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Dismissed( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Dismissed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Dismissed( *reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::UI::Input::IInputLightDismissActionStatics> { int32_t __stdcall GetForWindowId(struct struct_Microsoft_UI_WindowId windowId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetForWindowId( *reinterpret_cast( &windowId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base {}; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().DispatcherQueue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ClearAllRegionRects() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ClearAllRegionRects(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ClearRegionRects(int32_t region) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ClearRegionRects( *reinterpret_cast< winrt::Microsoft::UI::Input::NonClientRegionKind const*>(®ion)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetRegionRects( int32_t region, uint32_t* __resultSize, struct struct_Windows_Graphics_RectInt32** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetRegionRects( *reinterpret_cast< winrt::Microsoft::UI::Input::NonClientRegionKind const*>(®ion))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetRegionRects( int32_t region, uint32_t __rectsSize, struct struct_Windows_Graphics_RectInt32* rects) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetRegionRects( *reinterpret_cast< winrt::Microsoft::UI::Input::NonClientRegionKind const*>(®ion), array_view( reinterpret_cast(rects), reinterpret_cast( rects) + __rectsSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_CaptionTapped(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CaptionTapped( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CaptionTapped( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CaptionTapped( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerEntered(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerEntered( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerEntered( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerEntered( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerExited(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerExited( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerExited( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerExited( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerMoved(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerMoved( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerMoved( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerMoved( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerPressed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerPressed( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerPressed( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerPressed( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerReleased( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerReleased( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerReleased( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerReleased( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_RegionsChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().RegionsChanged( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_RegionsChanged( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().RegionsChanged( *reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_EnteringMoveSize( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().EnteringMoveSize( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_EnteringMoveSize( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().EnteringMoveSize( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_EnteredMoveSize( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().EnteredMoveSize( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_EnteredMoveSize( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().EnteredMoveSize( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_WindowRectChanging( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().WindowRectChanging( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_WindowRectChanging( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().WindowRectChanging( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_WindowRectChanged( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().WindowRectChanged( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_WindowRectChanged( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().WindowRectChanged( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ExitedMoveSize(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ExitedMoveSize( *reinterpret_cast const*>( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ExitedMoveSize( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ExitedMoveSize( *reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::UI::Input::IInputNonClientPointerSourceStatics> { int32_t __stdcall GetForWindowId(struct struct_Microsoft_UI_WindowId windowId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetForWindowId( *reinterpret_cast( &windowId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().DispatcherQueue()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base {}; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Cursor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Cursor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Cursor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Cursor( *reinterpret_cast( &value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeviceKinds(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().DeviceKinds()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_PointerCaptureLost( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerCaptureLost( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerCaptureLost( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerCaptureLost( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerEntered(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerEntered( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerEntered( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerEntered( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerExited(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerExited( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerExited( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerExited( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerMoved(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerMoved( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerMoved( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerMoved( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerPressed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerPressed( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerPressed( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerPressed( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerReleased( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerReleased( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerReleased( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerReleased( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerRoutedAway( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerRoutedAway( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerRoutedAway( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerRoutedAway( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerRoutedReleased( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerRoutedReleased( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerRoutedReleased( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerRoutedReleased( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerRoutedTo( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerRoutedTo( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerRoutedTo( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerRoutedTo( *reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerWheelChanged( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerWheelChanged( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerWheelChanged( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerWheelChanged( *reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForIsland(void* island, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetForIsland( *reinterpret_cast< winrt::Microsoft::UI::Content::ContentIsland const*>(&island))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::UI::Input::IInputPreTranslateKeyboardSource> {}; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::UI::Input::IInputPreTranslateKeyboardSourceStatics> : produce_base { int32_t __stdcall GetForIsland(void* island, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from< winrt::Microsoft::UI::Input::InputPreTranslateKeyboardSource>( this->shim().GetForIsland( *reinterpret_cast< winrt::Microsoft::UI::Content::ContentIsland const*>(&island))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CursorShape(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().CursorShape()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(int32_t type, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().Create( *reinterpret_cast< winrt::Microsoft::UI::Input::InputSystemCursorShape const*>( &type))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyStatus( struct struct_Microsoft_UI_Input_PhysicalKeyStatus* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().KeyStatus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Timestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VirtualKey(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().VirtualKey()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::UI::Input::IManipulationCompletedEventArgs> { int32_t __stdcall get_Cumulative( struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Cumulative()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerDeviceType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Position( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Position()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Velocities( struct struct_Microsoft_UI_Input_ManipulationVelocities* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Velocities()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs> : produce_base< D, winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs> { int32_t __stdcall get_Cumulative( struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Cumulative()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Delta( struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Delta()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerDeviceType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Position( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Position()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Velocities( struct struct_Microsoft_UI_Input_ManipulationVelocities* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Velocities()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Cumulative( struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Cumulative()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerDeviceType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Position( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Position()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Cumulative( struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Cumulative()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Delta( struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Delta()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerDeviceType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Position( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Position()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Velocities( struct struct_Microsoft_UI_Input_ManipulationVelocities* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Velocities()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CharTranslation( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().CharTranslation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CharTranslation( winrt::Windows::Foundation::Point value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CharTranslation( *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeltaScale(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeltaScale()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DeltaScale(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeltaScale(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeltaRotationAngle(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeltaRotationAngle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DeltaRotationAngle(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeltaRotationAngle(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PageTranslation( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PageTranslation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PageTranslation( winrt::Windows::Foundation::Point value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PageTranslation( *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::UI::Input::INonClientCaptionTappedEventArgs> { int32_t __stdcall get_Point( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Point()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerDeviceType()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Point( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Point()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerDeviceType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RegionKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().RegionKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsPointInRegion(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsPointInRegion()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::UI::Input::INonClientRegionsChangedEventArgs> { int32_t __stdcall get_ChangedRegions(uint32_t* __valueSize, int32_t** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); std::tie(*__valueSize, *value) = detach_abi(this->shim().ChangedRegions()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CurrentPoint(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().CurrentPoint()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyModifiers(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().KeyModifiers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetIntermediatePoints(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>( this->shim().GetIntermediatePoints()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetIntermediateTransformedPoints( void* transform, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>( this->shim().GetIntermediateTransformedPoints( *reinterpret_cast< winrt::Microsoft::UI::Input::IPointerPointTransform const*>( &transform))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FrameId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FrameId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsInContact(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsInContact()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerDeviceType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Position( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Position()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Properties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Properties()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Timestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTransformedPoint(void* transform, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetTransformedPoint( *reinterpret_cast< winrt::Microsoft::UI::Input::IPointerPointTransform const*>( &transform))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContactRect( winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().ContactRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsBarrelButtonPressed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsBarrelButtonPressed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCanceled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCanceled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsEraser(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEraser()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHorizontalMouseWheel(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHorizontalMouseWheel()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsInRange(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsInRange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsInverted(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsInverted()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsLeftButtonPressed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsLeftButtonPressed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsMiddleButtonPressed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsMiddleButtonPressed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsPrimary(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsPrimary()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsRightButtonPressed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsRightButtonPressed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsXButton1Pressed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsXButton1Pressed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsXButton2Pressed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsXButton2Pressed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MouseWheelDelta(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MouseWheelDelta()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Orientation(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Orientation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerUpdateKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerUpdateKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Pressure(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Pressure()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TouchConfidence(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TouchConfidence()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Twist(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Twist()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_XTilt(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().XTilt()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_YTilt(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().YTilt()); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall get_Inverse(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Inverse()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryTransform(winrt::Windows::Foundation::Point inPoint, winrt::Windows::Foundation::Point* outPoint, bool* result) noexcept final try { zero_abi(outPoint); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryTransform( *reinterpret_cast(&inPoint), *reinterpret_cast(outPoint))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryTransformBounds( winrt::Windows::Foundation::Rect inRect, winrt::Windows::Foundation::Rect* outRect, bool* result) noexcept final try { zero_abi(outRect); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryTransformBounds( *reinterpret_cast(&inRect), *reinterpret_cast(outRect))); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PredictionTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PredictionTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PredictionTime(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PredictionTime( *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPredictedPoints(void* point, uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetPredictedPoints( *reinterpret_cast( &point))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateForInputPointerSource(void* inputPointerSource, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().CreateForInputPointerSource( *reinterpret_cast< winrt::Microsoft::UI::Input::InputPointerSource const*>( &inputPointerSource))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerDeviceType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Position( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Position()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerDeviceType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Position( winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Position()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TapCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TapCount()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PointerScreenPoint( struct struct_Windows_Graphics_PointInt32* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerScreenPoint()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MoveSizeOperation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().MoveSizeOperation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OldWindowRect( struct struct_Windows_Graphics_RectInt32* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().OldWindowRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NewWindowRect( struct struct_Windows_Graphics_RectInt32* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().NewWindowRect()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PointerScreenPoint( struct struct_Windows_Graphics_PointInt32* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().PointerScreenPoint()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MoveSizeOperation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().MoveSizeOperation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OldWindowRect( struct struct_Windows_Graphics_RectInt32* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().OldWindowRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NewWindowRect( struct struct_Windows_Graphics_RectInt32* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().NewWindowRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_NewWindowRect( struct struct_Windows_Graphics_RectInt32 value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NewWindowRect( *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllowRectChange(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowRectChange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowRectChange(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowRectChange(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ShowWindow(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShowWindow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ShowWindow(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowWindow(value); return 0; } catch (...) { return to_hresult(); } }; #endif } // namespace winrt::impl WINRT_EXPORT namespace winrt::Microsoft::UI::Input { constexpr auto operator|(GestureSettings const left, GestureSettings const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(GestureSettings& left, GestureSettings const right) noexcept { left = left | right; return left; } constexpr auto operator&(GestureSettings const left, GestureSettings const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(GestureSettings& left, GestureSettings const right) noexcept { left = left & right; return left; } constexpr auto operator~(GestureSettings const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(GestureSettings const left, GestureSettings const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(GestureSettings& left, GestureSettings const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(InputPointerSourceDeviceKinds const left, InputPointerSourceDeviceKinds const right) noexcept { return static_cast( impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=( InputPointerSourceDeviceKinds& left, InputPointerSourceDeviceKinds const right) noexcept { left = left | right; return left; } constexpr auto operator&(InputPointerSourceDeviceKinds const left, InputPointerSourceDeviceKinds const right) noexcept { return static_cast( impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=( InputPointerSourceDeviceKinds& left, InputPointerSourceDeviceKinds const right) noexcept { left = left & right; return left; } constexpr auto operator~(InputPointerSourceDeviceKinds const value) noexcept { return static_cast( ~impl::to_underlying_type(value)); } constexpr auto operator^(InputPointerSourceDeviceKinds const left, InputPointerSourceDeviceKinds const right) noexcept { return static_cast( impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=( InputPointerSourceDeviceKinds& left, InputPointerSourceDeviceKinds const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(VirtualKeyStates const left, VirtualKeyStates const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(VirtualKeyStates& left, VirtualKeyStates const right) noexcept { left = left | right; return left; } constexpr auto operator&(VirtualKeyStates const left, VirtualKeyStates const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(VirtualKeyStates& left, VirtualKeyStates const right) noexcept { left = left & right; return left; } constexpr auto operator~(VirtualKeyStates const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(VirtualKeyStates const left, VirtualKeyStates const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(VirtualKeyStates& left, VirtualKeyStates const right) noexcept { left = left ^ right; return left; } inline auto FocusNavigationRequest::Create( winrt::Microsoft::UI::Input::FocusNavigationReason const& reason) { return impl::call_factory( [&](IFocusNavigationRequestStatics const& f) { return f.Create(reason); }); } inline auto FocusNavigationRequest::Create( winrt::Microsoft::UI::Input::FocusNavigationReason const& reason, winrt::Windows::Foundation::Rect const& hintRect) { return impl::call_factory( [&](IFocusNavigationRequestStatics const& f) { return f.Create(reason, hintRect); }); } inline auto FocusNavigationRequest::Create( winrt::Microsoft::UI::Input::FocusNavigationReason const& reason, winrt::Windows::Foundation::Rect const& hintRect, winrt::guid const& correlationId) { return impl::call_factory( [&](IFocusNavigationRequestStatics const& f) { return f.Create(reason, hintRect, correlationId); }); } inline GestureRecognizer::GestureRecognizer() : GestureRecognizer( impl::call_factory_cast< GestureRecognizer (*)( winrt::Windows::Foundation::IActivationFactory const&), GestureRecognizer>( [](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) {} inline auto InputActivationListener::GetForWindowId( winrt::Microsoft::UI::WindowId const& windowId) { return impl::call_factory( [&](IInputActivationListenerStatics const& f) { return f.GetForWindowId(windowId); }); } inline auto InputActivationListener::GetForIsland( winrt::Microsoft::UI::Content::ContentIsland const& island) { return impl::call_factory( [&](IInputActivationListenerStatics2 const& f) { return f.GetForIsland(island); }); } inline auto InputCursor::CreateFromCoreCursor( winrt::Windows::UI::Core::CoreCursor const& cursor) { return impl::call_factory( [&](IInputCursorStatics const& f) { return f.CreateFromCoreCursor(cursor); }); } inline auto InputDesktopNamedResourceCursor::Create( param::hstring const& resourceName) { return impl::call_factory( [&](IInputDesktopNamedResourceCursorStatics const& f) { return f.Create(resourceName); }); } inline auto InputDesktopNamedResourceCursor::CreateFromModule( param::hstring const& moduleName, param::hstring const& resourceName) { return impl::call_factory( [&](IInputDesktopNamedResourceCursorStatics const& f) { return f.CreateFromModule(moduleName, resourceName); }); } inline auto InputDesktopResourceCursor::Create(uint32_t resourceId) { return impl::call_factory( [&](IInputDesktopResourceCursorStatics const& f) { return f.Create(resourceId); }); } inline auto InputDesktopResourceCursor::CreateFromModule( param::hstring const& moduleName, uint32_t resourceId) { return impl::call_factory( [&](IInputDesktopResourceCursorStatics const& f) { return f.CreateFromModule(moduleName, resourceId); }); } inline auto InputFocusController::GetForIsland( winrt::Microsoft::UI::Content::ContentIsland const& island) { return impl::call_factory( [&](IInputFocusControllerStatics const& f) { return f.GetForIsland(island); }); } inline auto InputFocusNavigationHost::GetForSiteBridge( winrt::Microsoft::UI::Content::IContentSiteBridge const& site) { return impl::call_factory( [&](IInputFocusNavigationHostStatics const& f) { return f.GetForSiteBridge(site); }); } inline auto InputFocusNavigationHost::GetForSiteLink( winrt::Microsoft::UI::Content::IContentSiteLink const& contentSiteLink) { return impl::call_factory( [&](IInputFocusNavigationHostStatics2 const& f) { return f.GetForSiteLink(contentSiteLink); }); } inline auto InputKeyboardSource::GetKeyStateForCurrentThread( winrt::Windows::System::VirtualKey const& virtualKey) { return impl::call_factory( [&](IInputKeyboardSourceStatics const& f) { return f.GetKeyStateForCurrentThread(virtualKey); }); } inline auto InputKeyboardSource::GetForIsland( winrt::Microsoft::UI::Content::ContentIsland const& island) { return impl::call_factory( [&](IInputKeyboardSourceStatics2 const& f) { return f.GetForIsland(island); }); } inline auto InputLightDismissAction::GetForWindowId( winrt::Microsoft::UI::WindowId const& windowId) { return impl::call_factory( [&](IInputLightDismissActionStatics const& f) { return f.GetForWindowId(windowId); }); } inline auto InputNonClientPointerSource::GetForWindowId( winrt::Microsoft::UI::WindowId const& windowId) { return impl::call_factory( [&](IInputNonClientPointerSourceStatics const& f) { return f.GetForWindowId(windowId); }); } inline auto InputPointerSource::GetForIsland( winrt::Microsoft::UI::Content::ContentIsland const& island) { return impl::call_factory( [&](IInputPointerSourceStatics const& f) { return f.GetForIsland(island); }); } inline auto InputPreTranslateKeyboardSource::GetForIsland( winrt::Microsoft::UI::Content::ContentIsland const& island) { return impl::call_factory( [&](IInputPreTranslateKeyboardSourceStatics const& f) { return f.GetForIsland(island); }); } inline auto InputSystemCursor::Create( winrt::Microsoft::UI::Input::InputSystemCursorShape const& type) { return impl::call_factory( [&](IInputSystemCursorStatics const& f) { return f.Create(type); }); } inline auto PointerPredictor::CreateForInputPointerSource( winrt::Microsoft::UI::Input::InputPointerSource const& inputPointerSource) { return impl::call_factory( [&](IPointerPredictorStatics const& f) { return f.CreateForInputPointerSource(inputPointerSource); }); } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursorStatics> : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::UI::Input::IInputPreTranslateKeyboardSourceStatics> : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base { }; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base { }; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } // namespace std #endif