// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #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.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #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/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" #include "winrt/impl/Microsoft.UI.Input.2.h" namespace winrt::impl { template auto consume_Microsoft_UI_Input_ICharacterReceivedEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs)->get_Handled(&value)); return value; } template auto consume_Microsoft_UI_Input_ICharacterReceivedEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs)->put_Handled(value)); } template auto consume_Microsoft_UI_Input_ICharacterReceivedEventArgs::KeyCode() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs)->get_KeyCode(&value)); return value; } template auto consume_Microsoft_UI_Input_ICharacterReceivedEventArgs::KeyStatus() const { winrt::Microsoft::UI::Input::PhysicalKeyStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs)->get_KeyStatus(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IContextMenuKeyEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IContextMenuKeyEventArgs)->get_Handled(&value)); return value; } template auto consume_Microsoft_UI_Input_IContextMenuKeyEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IContextMenuKeyEventArgs)->put_Handled(value)); } template auto consume_Microsoft_UI_Input_ICrossSlidingEventArgs::CrossSlidingState() const { winrt::Microsoft::UI::Input::CrossSlidingState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::ICrossSlidingEventArgs)->get_CrossSlidingState(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_ICrossSlidingEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::ICrossSlidingEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_ICrossSlidingEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::ICrossSlidingEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IDraggingEventArgs::DraggingState() const { winrt::Microsoft::UI::Input::DraggingState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IDraggingEventArgs)->get_DraggingState(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IDraggingEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IDraggingEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IDraggingEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IDraggingEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IEnteredMoveSizeEventArgs::PointerScreenPoint() const { winrt::Windows::Graphics::PointInt32 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IEnteredMoveSizeEventArgs)->get_PointerScreenPoint(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IEnteredMoveSizeEventArgs::MoveSizeOperation() const { winrt::Microsoft::UI::Input::MoveSizeOperation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IEnteredMoveSizeEventArgs)->get_MoveSizeOperation(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IEnteringMoveSizeEventArgs::PointerScreenPoint() const { winrt::Windows::Graphics::PointInt32 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs)->get_PointerScreenPoint(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IEnteringMoveSizeEventArgs::MoveSizeOperation() const { winrt::Microsoft::UI::Input::MoveSizeOperation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs)->get_MoveSizeOperation(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IEnteringMoveSizeEventArgs::MoveSizeWindowId() const { winrt::Microsoft::UI::WindowId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs)->get_MoveSizeWindowId(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IEnteringMoveSizeEventArgs::MoveSizeWindowId(winrt::Microsoft::UI::WindowId const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs)->put_MoveSizeWindowId(impl::bind_in(value))); } template auto consume_Microsoft_UI_Input_IExitedMoveSizeEventArgs::PointerScreenPoint() const { winrt::Windows::Graphics::PointInt32 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IExitedMoveSizeEventArgs)->get_PointerScreenPoint(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IExitedMoveSizeEventArgs::MoveSizeOperation() const { winrt::Microsoft::UI::Input::MoveSizeOperation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IExitedMoveSizeEventArgs)->get_MoveSizeOperation(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IFocusChangedEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IFocusChangedEventArgs)->get_Handled(&value)); return value; } template auto consume_Microsoft_UI_Input_IFocusChangedEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IFocusChangedEventArgs)->put_Handled(value)); } template auto consume_Microsoft_UI_Input_IFocusNavigationRequest::CorrelationId() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IFocusNavigationRequest)->get_CorrelationId(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IFocusNavigationRequest::HintRect() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IFocusNavigationRequest)->get_HintRect(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Input_IFocusNavigationRequest::Reason() const { winrt::Microsoft::UI::Input::FocusNavigationReason value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IFocusNavigationRequest)->get_Reason(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IFocusNavigationRequestEventArgs::Request() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IFocusNavigationRequestEventArgs)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IFocusNavigationRequestEventArgs)->get_Result(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IFocusNavigationRequestEventArgs::Result(winrt::Microsoft::UI::Input::FocusNavigationResult const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IFocusNavigationRequestEventArgs)->put_Result(static_cast(value))); } template auto consume_Microsoft_UI_Input_IFocusNavigationRequestStatics::Create(winrt::Microsoft::UI::Input::FocusNavigationReason const& reason) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_AutoProcessInertia(&value)); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::AutoProcessInertia(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_AutoProcessInertia(value)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideExact() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_CrossSlideExact(&value)); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideExact(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_CrossSlideExact(value)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideHorizontally() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_CrossSlideHorizontally(&value)); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideHorizontally(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_CrossSlideHorizontally(value)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideThresholds() const { winrt::Microsoft::UI::Input::CrossSlideThresholds value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_CrossSlideThresholds(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideThresholds(winrt::Microsoft::UI::Input::CrossSlideThresholds const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_CrossSlideThresholds(impl::bind_in(value))); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::GestureSettings() const { winrt::Microsoft::UI::Input::GestureSettings value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_GestureSettings(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::GestureSettings(winrt::Microsoft::UI::Input::GestureSettings const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_GestureSettings(static_cast(value))); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::IsActive() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_IsActive(&value)); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::IsInertial() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_IsInertial(&value)); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::PivotCenter() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_PivotCenter(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::PivotCenter(winrt::Windows::Foundation::Point const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_PivotCenter(impl::bind_in(value))); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::PivotRadius() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_PivotRadius(&value)); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::PivotRadius(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_PivotRadius(value)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaExpansionDeceleration() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_InertiaExpansionDeceleration(&value)); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaExpansionDeceleration(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_InertiaExpansionDeceleration(value)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaExpansion() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_InertiaExpansion(&value)); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaExpansion(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_InertiaExpansion(value)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaRotationAngle() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_InertiaRotationAngle(&value)); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaRotationAngle(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_InertiaRotationAngle(value)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaRotationDeceleration() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_InertiaRotationDeceleration(&value)); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaRotationDeceleration(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_InertiaRotationDeceleration(value)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaTranslationDeceleration() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_InertiaTranslationDeceleration(&value)); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaTranslationDeceleration(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_InertiaTranslationDeceleration(value)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaTranslationDisplacement() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_InertiaTranslationDisplacement(&value)); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaTranslationDisplacement(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_InertiaTranslationDisplacement(value)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationExact() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_ManipulationExact(&value)); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationExact(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_ManipulationExact(value)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::MouseWheelParameters() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->get_ShowGestureFeedback(&value)); return value; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ShowGestureFeedback(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->put_ShowGestureFeedback(value)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CanBeDoubleTap(winrt::Microsoft::UI::Input::PointerPoint const& value) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->CanBeDoubleTap(*(void**)(&value), &result)); return result; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CompleteGesture() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->CompleteGesture()); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessDownEvent(winrt::Microsoft::UI::Input::PointerPoint const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->ProcessDownEvent(*(void**)(&value))); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessMoveEvents(param::vector const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->ProcessMoveEvents(*(void**)(&value))); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessMouseWheelEvent(winrt::Microsoft::UI::Input::PointerPoint const& value, bool isShiftKeyDown, bool isControlKeyDown) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->ProcessMouseWheelEvent(*(void**)(&value), isShiftKeyDown, isControlKeyDown)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessInertia() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->ProcessInertia()); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessUpEvent(winrt::Microsoft::UI::Input::PointerPoint const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->ProcessUpEvent(*(void**)(&value))); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Tapped(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->add_Tapped(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Tapped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->remove_Tapped(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::RightTapped(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->add_RightTapped(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::RightTapped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->remove_RightTapped(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Holding(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->add_Holding(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Holding(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->remove_Holding(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Dragging(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->add_Dragging(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::Dragging(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->remove_Dragging(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationStarted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->add_ManipulationStarted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationStarted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->remove_ManipulationStarted(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationUpdated(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->add_ManipulationUpdated(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationUpdated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->remove_ManipulationUpdated(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationInertiaStarting(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->add_ManipulationInertiaStarting(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationInertiaStarting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ManipulationInertiaStarting(handler)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationInertiaStarting(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->remove_ManipulationInertiaStarting(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->add_ManipulationCompleted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->remove_ManipulationCompleted(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSliding(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->add_CrossSliding(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSliding(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IGestureRecognizer)->remove_CrossSliding(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IHoldingEventArgs::HoldingState() const { winrt::Microsoft::UI::Input::HoldingState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IHoldingEventArgs)->get_HoldingState(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IHoldingEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IHoldingEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IHoldingEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IHoldingEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IInputActivationListener::State() const { winrt::Microsoft::UI::Input::InputActivationState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputActivationListener)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IInputActivationListener::InputActivationChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputActivationListener)->add_InputActivationChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputActivationListener::InputActivationChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, InputActivationChanged(handler)); } template auto consume_Microsoft_UI_Input_IInputActivationListener::InputActivationChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputActivationListener)->remove_InputActivationChanged(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputActivationListenerStatics::GetForWindowId(winrt::Microsoft::UI::WindowId const& windowId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputActivationListenerStatics)->GetForWindowId(impl::bind_in(windowId), &result)); return winrt::Microsoft::UI::Input::InputActivationListener{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Input_IInputActivationListenerStatics2::GetForIsland(winrt::Microsoft::UI::Content::ContentIsland const& island) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputActivationListenerStatics2)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputCursorStatics)->CreateFromCoreCursor(*(void**)(&cursor), &result)); return winrt::Microsoft::UI::Input::InputCursor{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Input_IInputDesktopNamedResourceCursor::ModuleName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursor)->get_ModuleName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Input_IInputDesktopNamedResourceCursor::ResourceName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursor)->get_ResourceName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Input_IInputDesktopNamedResourceCursorStatics::Create(param::hstring const& resourceName) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursorStatics)->Create(*(void**)(&resourceName), &result)); return winrt::Microsoft::UI::Input::InputDesktopNamedResourceCursor{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Input_IInputDesktopNamedResourceCursorStatics::CreateFromModule(param::hstring const& moduleName, param::hstring const& resourceName) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursorStatics)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputDesktopResourceCursor)->get_ModuleName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Input_IInputDesktopResourceCursor::ResourceId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputDesktopResourceCursor)->get_ResourceId(&value)); return value; } template auto consume_Microsoft_UI_Input_IInputDesktopResourceCursorStatics::Create(uint32_t resourceId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputDesktopResourceCursorStatics)->Create(resourceId, &result)); return winrt::Microsoft::UI::Input::InputDesktopResourceCursor{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Input_IInputDesktopResourceCursorStatics::CreateFromModule(param::hstring const& moduleName, uint32_t resourceId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputDesktopResourceCursorStatics)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusController)->get_HasFocus(&value)); return value; } template auto consume_Microsoft_UI_Input_IInputFocusController::TrySetFocus() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusController)->TrySetFocus(&result)); return result; } template auto consume_Microsoft_UI_Input_IInputFocusController::GotFocus(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusController)->add_GotFocus(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputFocusController::GotFocus(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusController)->remove_GotFocus(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputFocusController::LostFocus(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusController)->add_LostFocus(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputFocusController::LostFocus(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusController)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusController2)->DepartFocus(*(void**)(&request), reinterpret_cast(&result))); return result; } template auto consume_Microsoft_UI_Input_IInputFocusController2::NavigateFocusRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusController2)->add_NavigateFocusRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputFocusController2::NavigateFocusRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, NavigateFocusRequested(handler)); } template auto consume_Microsoft_UI_Input_IInputFocusController2::NavigateFocusRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusController2)->remove_NavigateFocusRequested(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputFocusControllerStatics::GetForIsland(winrt::Microsoft::UI::Content::ContentIsland const& island) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusControllerStatics)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusNavigationHost)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusNavigationHost)->NavigateFocus(*(void**)(&request), reinterpret_cast(&result))); return result; } template auto consume_Microsoft_UI_Input_IInputFocusNavigationHost::DepartFocusRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusNavigationHost)->add_DepartFocusRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputFocusNavigationHost::DepartFocusRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, DepartFocusRequested(handler)); } template auto consume_Microsoft_UI_Input_IInputFocusNavigationHost::DepartFocusRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusNavigationHost)->remove_DepartFocusRequested(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputFocusNavigationHostStatics::GetForSiteBridge(winrt::Microsoft::UI::Content::IContentSiteBridge const& site) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusNavigationHostStatics)->GetForSiteBridge(*(void**)(&site), &result)); return winrt::Microsoft::UI::Input::InputFocusNavigationHost{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Input_IInputFocusNavigationHostStatics2::GetForSiteLink(winrt::Microsoft::UI::Content::IContentSiteLink const& contentSiteLink) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputFocusNavigationHostStatics2)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSource2)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSource2)->GetKeyState(static_cast(virtualKey), reinterpret_cast(&result))); return result; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::CharacterReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSource2)->add_CharacterReceived(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::CharacterReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSource2)->remove_CharacterReceived(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::ContextMenuKey(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSource2)->add_ContextMenuKey(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::ContextMenuKey(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSource2)->remove_ContextMenuKey(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyDown(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSource2)->add_KeyDown(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyDown(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSource2)->remove_KeyDown(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyUp(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSource2)->add_KeyUp(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyUp(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSource2)->remove_KeyUp(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyDown(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSource2)->add_SystemKeyDown(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyDown(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSource2)->remove_SystemKeyDown(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyUp(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSource2)->add_SystemKeyUp(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyUp(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSource2)->remove_SystemKeyUp(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputKeyboardSourceStatics::GetKeyStateForCurrentThread(winrt::Windows::System::VirtualKey const& virtualKey) const { winrt::Windows::UI::Core::CoreVirtualKeyStates result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSourceStatics)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputKeyboardSourceStatics2)->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 const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputLightDismissAction)->add_Dismissed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputLightDismissAction::Dismissed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputLightDismissAction)->remove_Dismissed(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputLightDismissActionStatics::GetForWindowId(winrt::Microsoft::UI::WindowId const& windowId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputLightDismissActionStatics)->GetForWindowId(impl::bind_in(windowId), &result)); return winrt::Microsoft::UI::Input::InputLightDismissAction{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::DispatcherQueue() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->get_DispatcherQueue(&value)); return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::ClearAllRegionRects() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->ClearAllRegionRects()); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::ClearRegionRects(winrt::Microsoft::UI::Input::NonClientRegionKind const& region) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->SetRegionRects(static_cast(region), rects.size(), get_abi(rects))); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::CaptionTapped(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->add_CaptionTapped(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::CaptionTapped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->remove_CaptionTapped(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerEntered(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->add_PointerEntered(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerEntered(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->remove_PointerEntered(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerExited(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->add_PointerExited(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerExited(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->remove_PointerExited(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerMoved(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->add_PointerMoved(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerMoved(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->remove_PointerMoved(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerPressed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->add_PointerPressed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerPressed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->remove_PointerPressed(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerReleased(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->add_PointerReleased(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerReleased(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PointerReleased(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerReleased(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->remove_PointerReleased(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::RegionsChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->add_RegionsChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::RegionsChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource)->remove_RegionsChanged(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::EnteringMoveSize(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource2)->add_EnteringMoveSize(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::EnteringMoveSize(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, EnteringMoveSize(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::EnteringMoveSize(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource2)->remove_EnteringMoveSize(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::EnteredMoveSize(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource2)->add_EnteredMoveSize(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::EnteredMoveSize(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, EnteredMoveSize(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::EnteredMoveSize(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource2)->remove_EnteredMoveSize(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::WindowRectChanging(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource2)->add_WindowRectChanging(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::WindowRectChanging(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, WindowRectChanging(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::WindowRectChanging(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource2)->remove_WindowRectChanging(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::WindowRectChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource2)->add_WindowRectChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::WindowRectChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, WindowRectChanged(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::WindowRectChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource2)->remove_WindowRectChanged(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::ExitedMoveSize(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource2)->add_ExitedMoveSize(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::ExitedMoveSize(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ExitedMoveSize(handler)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2::ExitedMoveSize(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSource2)->remove_ExitedMoveSize(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputNonClientPointerSourceStatics::GetForWindowId(winrt::Microsoft::UI::WindowId const& windowId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputNonClientPointerSourceStatics)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputObject)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->put_Cursor(*(void**)(&value))); } template auto consume_Microsoft_UI_Input_IInputPointerSource::DeviceKinds() const { winrt::Microsoft::UI::Input::InputPointerSourceDeviceKinds value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->get_DeviceKinds(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerCaptureLost(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->add_PointerCaptureLost(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerCaptureLost(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->remove_PointerCaptureLost(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerEntered(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->add_PointerEntered(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerEntered(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->remove_PointerEntered(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerExited(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->add_PointerExited(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerExited(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->remove_PointerExited(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerMoved(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->add_PointerMoved(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerMoved(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->remove_PointerMoved(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerPressed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->add_PointerPressed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerPressed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->remove_PointerPressed(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerReleased(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->add_PointerReleased(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerReleased(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->remove_PointerReleased(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedAway(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->add_PointerRoutedAway(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedAway(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->remove_PointerRoutedAway(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedReleased(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->add_PointerRoutedReleased(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedReleased(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->remove_PointerRoutedReleased(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedTo(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->add_PointerRoutedTo(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedTo(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->remove_PointerRoutedTo(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerWheelChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->add_PointerWheelChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Input_IInputPointerSource::PointerWheelChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler 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 { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSource)->remove_PointerWheelChanged(impl::bind_in(token)); } template auto consume_Microsoft_UI_Input_IInputPointerSourceStatics::GetForIsland(winrt::Microsoft::UI::Content::ContentIsland const& island) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPointerSourceStatics)->GetForIsland(*(void**)(&island), &result)); return winrt::Microsoft::UI::Input::InputPointerSource{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Input_IInputPreTranslateKeyboardSourceStatics::GetForIsland(winrt::Microsoft::UI::Content::ContentIsland const& island) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputPreTranslateKeyboardSourceStatics)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputSystemCursor)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IInputSystemCursorStatics)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IKeyEventArgs)->get_Handled(&value)); return value; } template auto consume_Microsoft_UI_Input_IKeyEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IKeyEventArgs)->put_Handled(value)); } template auto consume_Microsoft_UI_Input_IKeyEventArgs::KeyStatus() const { winrt::Microsoft::UI::Input::PhysicalKeyStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IKeyEventArgs)->get_KeyStatus(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IKeyEventArgs::Timestamp() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IKeyEventArgs)->get_Timestamp(&value)); return value; } template auto consume_Microsoft_UI_Input_IKeyEventArgs::VirtualKey() const { winrt::Windows::System::VirtualKey value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IKeyEventArgs)->get_VirtualKey(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationCompletedEventArgs::Cumulative() const { winrt::Microsoft::UI::Input::ManipulationDelta value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationCompletedEventArgs)->get_Cumulative(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationCompletedEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationCompletedEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationCompletedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationCompletedEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationCompletedEventArgs::Velocities() const { winrt::Microsoft::UI::Input::ManipulationVelocities value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationCompletedEventArgs)->get_Velocities(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs::Cumulative() const { winrt::Microsoft::UI::Input::ManipulationDelta value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs)->get_Cumulative(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs::Delta() const { winrt::Microsoft::UI::Input::ManipulationDelta value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs)->get_Delta(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs::Velocities() const { winrt::Microsoft::UI::Input::ManipulationVelocities value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs)->get_Velocities(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationStartedEventArgs::Cumulative() const { winrt::Microsoft::UI::Input::ManipulationDelta value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationStartedEventArgs)->get_Cumulative(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationStartedEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationStartedEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationStartedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationStartedEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs::Cumulative() const { winrt::Microsoft::UI::Input::ManipulationDelta value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs)->get_Cumulative(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs::Delta() const { winrt::Microsoft::UI::Input::ManipulationDelta value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs)->get_Delta(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs::Velocities() const { winrt::Microsoft::UI::Input::ManipulationVelocities value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs)->get_Velocities(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::CharTranslation() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IMouseWheelParameters)->get_CharTranslation(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::CharTranslation(winrt::Windows::Foundation::Point const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IMouseWheelParameters)->put_CharTranslation(impl::bind_in(value))); } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::DeltaScale() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IMouseWheelParameters)->get_DeltaScale(&value)); return value; } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::DeltaScale(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IMouseWheelParameters)->put_DeltaScale(value)); } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::DeltaRotationAngle() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IMouseWheelParameters)->get_DeltaRotationAngle(&value)); return value; } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::DeltaRotationAngle(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IMouseWheelParameters)->put_DeltaRotationAngle(value)); } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::PageTranslation() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IMouseWheelParameters)->get_PageTranslation(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IMouseWheelParameters::PageTranslation(winrt::Windows::Foundation::Point const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IMouseWheelParameters)->put_PageTranslation(impl::bind_in(value))); } template auto consume_Microsoft_UI_Input_INonClientCaptionTappedEventArgs::Point() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::INonClientCaptionTappedEventArgs)->get_Point(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_INonClientCaptionTappedEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::INonClientCaptionTappedEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_INonClientPointerEventArgs::Point() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::INonClientPointerEventArgs)->get_Point(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_INonClientPointerEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::INonClientPointerEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_INonClientPointerEventArgs::RegionKind() const { winrt::Microsoft::UI::Input::NonClientRegionKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::INonClientPointerEventArgs)->get_RegionKind(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_INonClientPointerEventArgs::IsPointInRegion() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::INonClientPointerEventArgs)->get_IsPointInRegion(&value)); return value; } template auto consume_Microsoft_UI_Input_INonClientRegionsChangedEventArgs::ChangedRegions() const { uint32_t value_impl_size{}; int32_t* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::INonClientRegionsChangedEventArgs)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerEventArgs)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerEventArgs)->get_Handled(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerEventArgs)->put_Handled(value)); } template auto consume_Microsoft_UI_Input_IPointerEventArgs::KeyModifiers() const { winrt::Windows::System::VirtualKeyModifiers value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerEventArgs)->get_KeyModifiers(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IPointerEventArgs::GetIntermediatePoints() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerEventArgs)->GetIntermediatePoints(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Input_IPointerEventArgs::GetIntermediateTransformedPoints(winrt::Microsoft::UI::Input::IPointerPointTransform const& transform) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerEventArgs)->GetIntermediateTransformedPoints(*(void**)(&transform), &result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Input_IPointerPoint::FrameId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPoint)->get_FrameId(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPoint::IsInContact() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPoint)->get_IsInContact(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPoint::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPoint)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IPointerPoint::PointerId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPoint)->get_PointerId(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPoint::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPoint)->get_Position(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IPointerPoint::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPoint)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPoint)->get_Timestamp(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPoint::GetTransformedPoint(winrt::Microsoft::UI::Input::IPointerPointTransform const& transform) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPoint)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_ContactRect(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsBarrelButtonPressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_IsBarrelButtonPressed(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsCanceled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_IsCanceled(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsEraser() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_IsEraser(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsHorizontalMouseWheel() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_IsHorizontalMouseWheel(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsInRange() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_IsInRange(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsInverted() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_IsInverted(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsLeftButtonPressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_IsLeftButtonPressed(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsMiddleButtonPressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_IsMiddleButtonPressed(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsPrimary() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_IsPrimary(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsRightButtonPressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_IsRightButtonPressed(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsXButton1Pressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_IsXButton1Pressed(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::IsXButton2Pressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_IsXButton2Pressed(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::MouseWheelDelta() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_MouseWheelDelta(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::Orientation() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_Orientation(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::PointerUpdateKind() const { winrt::Microsoft::UI::Input::PointerUpdateKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_PointerUpdateKind(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::Pressure() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_Pressure(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::TouchConfidence() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_TouchConfidence(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::Twist() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_Twist(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::XTilt() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_XTilt(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointProperties::YTilt() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointProperties)->get_YTilt(&value)); return value; } template auto consume_Microsoft_UI_Input_IPointerPointTransform::Inverse() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointTransform)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointTransform)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPointTransform)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPredictor)->get_PredictionTime(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IPointerPredictor::PredictionTime(winrt::Windows::Foundation::TimeSpan const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPredictor)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPredictor)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IPointerPredictorStatics)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IRightTappedEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IRightTappedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IRightTappedEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_ITappedEventArgs::PointerDeviceType() const { winrt::Microsoft::UI::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::ITappedEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_ITappedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::ITappedEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_ITappedEventArgs::TapCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::ITappedEventArgs)->get_TapCount(&value)); return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangedEventArgs::PointerScreenPoint() const { winrt::Windows::Graphics::PointInt32 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs)->get_PointerScreenPoint(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangedEventArgs::MoveSizeOperation() const { winrt::Microsoft::UI::Input::MoveSizeOperation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs)->get_MoveSizeOperation(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangedEventArgs::OldWindowRect() const { winrt::Windows::Graphics::RectInt32 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs)->get_OldWindowRect(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangedEventArgs::NewWindowRect() const { winrt::Windows::Graphics::RectInt32 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs)->get_NewWindowRect(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::PointerScreenPoint() const { winrt::Windows::Graphics::PointInt32 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs)->get_PointerScreenPoint(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::MoveSizeOperation() const { winrt::Microsoft::UI::Input::MoveSizeOperation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs)->get_MoveSizeOperation(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::OldWindowRect() const { winrt::Windows::Graphics::RectInt32 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs)->get_OldWindowRect(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::NewWindowRect() const { winrt::Windows::Graphics::RectInt32 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs)->get_NewWindowRect(put_abi(value))); return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::NewWindowRect(winrt::Windows::Graphics::RectInt32 const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs)->put_NewWindowRect(impl::bind_in(value))); } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::AllowRectChange() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs)->get_AllowRectChange(&value)); return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::AllowRectChange(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs)->put_AllowRectChange(value)); } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::ShowWindow() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs)->get_ShowWindow(&value)); return value; } template auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::ShowWindow(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs)->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 { 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(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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(&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(&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(&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(&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 { 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 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(&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 { 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 : 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(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(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 { 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(&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(&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(&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 { 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(&site))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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(&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(&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 { 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(®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(®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(®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 { 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(&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 { 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(&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(&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 { 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 : 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_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 { 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 { 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(&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(&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(&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 } 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([](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::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif