// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_UI_Input_H #define WINRT_Windows_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/Windows.UI.h" #include "winrt/impl/Windows.Devices.Haptics.2.h" #include "winrt/impl/Windows.Devices.Input.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.System.2.h" #include "winrt/impl/Windows.UI.Core.2.h" #include "winrt/impl/Windows.UI.Input.2.h" namespace winrt::impl { template auto consume_Windows_UI_Input_ICrossSlidingEventArgs::PointerDeviceType() const { winrt::Windows::Devices::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ICrossSlidingEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_ICrossSlidingEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ICrossSlidingEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Windows_UI_Input_ICrossSlidingEventArgs::CrossSlidingState() const { winrt::Windows::UI::Input::CrossSlidingState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ICrossSlidingEventArgs)->get_CrossSlidingState(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_ICrossSlidingEventArgs2::ContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ICrossSlidingEventArgs2)->get_ContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IDraggingEventArgs::PointerDeviceType() const { winrt::Windows::Devices::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IDraggingEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IDraggingEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IDraggingEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IDraggingEventArgs::DraggingState() const { winrt::Windows::UI::Input::DraggingState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IDraggingEventArgs)->get_DraggingState(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IDraggingEventArgs2::ContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IDraggingEventArgs2)->get_ContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IEdgeGesture::Starting(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IEdgeGesture)->add_Starting(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IEdgeGesture::Starting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Starting(handler)); } template auto consume_Windows_UI_Input_IEdgeGesture::Starting(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IEdgeGesture)->remove_Starting(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IEdgeGesture::Completed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IEdgeGesture)->add_Completed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IEdgeGesture::Completed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Completed(handler)); } template auto consume_Windows_UI_Input_IEdgeGesture::Completed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IEdgeGesture)->remove_Completed(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IEdgeGesture::Canceled(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IEdgeGesture)->add_Canceled(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IEdgeGesture::Canceled(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Canceled(handler)); } template auto consume_Windows_UI_Input_IEdgeGesture::Canceled(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IEdgeGesture)->remove_Canceled(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IEdgeGestureEventArgs::Kind() const { winrt::Windows::UI::Input::EdgeGestureKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IEdgeGestureEventArgs)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IEdgeGestureStatics::GetForCurrentView() const { void* current{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IEdgeGestureStatics)->GetForCurrentView(¤t)); return winrt::Windows::UI::Input::EdgeGesture{ current, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IGestureRecognizer::GestureSettings() const { winrt::Windows::UI::Input::GestureSettings value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_GestureSettings(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::GestureSettings(winrt::Windows::UI::Input::GestureSettings const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_GestureSettings(static_cast(value))); } template auto consume_Windows_UI_Input_IGestureRecognizer::IsInertial() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_IsInertial(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::IsActive() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_IsActive(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::ShowGestureFeedback() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_ShowGestureFeedback(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::ShowGestureFeedback(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_ShowGestureFeedback(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer::PivotCenter() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_PivotCenter(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::PivotCenter(winrt::Windows::Foundation::Point const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_PivotCenter(impl::bind_in(value))); } template auto consume_Windows_UI_Input_IGestureRecognizer::PivotRadius() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_PivotRadius(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::PivotRadius(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_PivotRadius(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer::InertiaTranslationDeceleration() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_InertiaTranslationDeceleration(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::InertiaTranslationDeceleration(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_InertiaTranslationDeceleration(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer::InertiaRotationDeceleration() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_InertiaRotationDeceleration(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::InertiaRotationDeceleration(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_InertiaRotationDeceleration(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer::InertiaExpansionDeceleration() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_InertiaExpansionDeceleration(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::InertiaExpansionDeceleration(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_InertiaExpansionDeceleration(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer::InertiaTranslationDisplacement() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_InertiaTranslationDisplacement(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::InertiaTranslationDisplacement(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_InertiaTranslationDisplacement(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer::InertiaRotationAngle() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_InertiaRotationAngle(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::InertiaRotationAngle(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_InertiaRotationAngle(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer::InertiaExpansion() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_InertiaExpansion(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::InertiaExpansion(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_InertiaExpansion(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer::ManipulationExact() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_ManipulationExact(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::ManipulationExact(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_ManipulationExact(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer::CrossSlideThresholds() const { winrt::Windows::UI::Input::CrossSlideThresholds value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_CrossSlideThresholds(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::CrossSlideThresholds(winrt::Windows::UI::Input::CrossSlideThresholds const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_CrossSlideThresholds(impl::bind_in(value))); } template auto consume_Windows_UI_Input_IGestureRecognizer::CrossSlideHorizontally() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_CrossSlideHorizontally(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::CrossSlideHorizontally(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_CrossSlideHorizontally(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer::CrossSlideExact() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_CrossSlideExact(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::CrossSlideExact(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_CrossSlideExact(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer::AutoProcessInertia() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_AutoProcessInertia(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer::AutoProcessInertia(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->put_AutoProcessInertia(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer::MouseWheelParameters() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->get_MouseWheelParameters(&value)); return winrt::Windows::UI::Input::MouseWheelParameters{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IGestureRecognizer::CanBeDoubleTap(winrt::Windows::UI::Input::PointerPoint const& value) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->CanBeDoubleTap(*(void**)(&value), &result)); return result; } template auto consume_Windows_UI_Input_IGestureRecognizer::ProcessDownEvent(winrt::Windows::UI::Input::PointerPoint const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->ProcessDownEvent(*(void**)(&value))); } template auto consume_Windows_UI_Input_IGestureRecognizer::ProcessMoveEvents(param::vector const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->ProcessMoveEvents(*(void**)(&value))); } template auto consume_Windows_UI_Input_IGestureRecognizer::ProcessUpEvent(winrt::Windows::UI::Input::PointerPoint const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->ProcessUpEvent(*(void**)(&value))); } template auto consume_Windows_UI_Input_IGestureRecognizer::ProcessMouseWheelEvent(winrt::Windows::UI::Input::PointerPoint const& value, bool isShiftKeyDown, bool isControlKeyDown) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->ProcessMouseWheelEvent(*(void**)(&value), isShiftKeyDown, isControlKeyDown)); } template auto consume_Windows_UI_Input_IGestureRecognizer::ProcessInertia() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->ProcessInertia()); } template auto consume_Windows_UI_Input_IGestureRecognizer::CompleteGesture() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->CompleteGesture()); } template auto consume_Windows_UI_Input_IGestureRecognizer::Tapped(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->add_Tapped(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_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_Windows_UI_Input_IGestureRecognizer::Tapped(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->remove_Tapped(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IGestureRecognizer::RightTapped(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->add_RightTapped(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_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_Windows_UI_Input_IGestureRecognizer::RightTapped(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->remove_RightTapped(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IGestureRecognizer::Holding(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->add_Holding(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_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_Windows_UI_Input_IGestureRecognizer::Holding(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->remove_Holding(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IGestureRecognizer::Dragging(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->add_Dragging(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_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_Windows_UI_Input_IGestureRecognizer::Dragging(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->remove_Dragging(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IGestureRecognizer::ManipulationStarted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->add_ManipulationStarted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_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_Windows_UI_Input_IGestureRecognizer::ManipulationStarted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->remove_ManipulationStarted(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IGestureRecognizer::ManipulationUpdated(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->add_ManipulationUpdated(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_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_Windows_UI_Input_IGestureRecognizer::ManipulationUpdated(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->remove_ManipulationUpdated(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IGestureRecognizer::ManipulationInertiaStarting(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->add_ManipulationInertiaStarting(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_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_Windows_UI_Input_IGestureRecognizer::ManipulationInertiaStarting(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->remove_ManipulationInertiaStarting(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IGestureRecognizer::ManipulationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->add_ManipulationCompleted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_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_Windows_UI_Input_IGestureRecognizer::ManipulationCompleted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->remove_ManipulationCompleted(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IGestureRecognizer::CrossSliding(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->add_CrossSliding(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_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_Windows_UI_Input_IGestureRecognizer::CrossSliding(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer)->remove_CrossSliding(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IGestureRecognizer2::TapMinContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->get_TapMinContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer2::TapMinContactCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->put_TapMinContactCount(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer2::TapMaxContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->get_TapMaxContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer2::TapMaxContactCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->put_TapMaxContactCount(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer2::HoldMinContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->get_HoldMinContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer2::HoldMinContactCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->put_HoldMinContactCount(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer2::HoldMaxContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->get_HoldMaxContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer2::HoldMaxContactCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->put_HoldMaxContactCount(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer2::HoldRadius() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->get_HoldRadius(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer2::HoldRadius(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->put_HoldRadius(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer2::HoldStartDelay() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->get_HoldStartDelay(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer2::HoldStartDelay(winrt::Windows::Foundation::TimeSpan const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->put_HoldStartDelay(impl::bind_in(value))); } template auto consume_Windows_UI_Input_IGestureRecognizer2::TranslationMinContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->get_TranslationMinContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer2::TranslationMinContactCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->put_TranslationMinContactCount(value)); } template auto consume_Windows_UI_Input_IGestureRecognizer2::TranslationMaxContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->get_TranslationMaxContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IGestureRecognizer2::TranslationMaxContactCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IGestureRecognizer2)->put_TranslationMaxContactCount(value)); } template auto consume_Windows_UI_Input_IHoldingEventArgs::PointerDeviceType() const { winrt::Windows::Devices::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IHoldingEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IHoldingEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IHoldingEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IHoldingEventArgs::HoldingState() const { winrt::Windows::UI::Input::HoldingState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IHoldingEventArgs)->get_HoldingState(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IHoldingEventArgs2::ContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IHoldingEventArgs2)->get_ContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IHoldingEventArgs2::CurrentContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IHoldingEventArgs2)->get_CurrentContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IInputActivationListener::State() const { winrt::Windows::UI::Input::InputActivationState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IInputActivationListener)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IInputActivationListener::InputActivationChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IInputActivationListener)->add_InputActivationChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_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_Windows_UI_Input_IInputActivationListener::InputActivationChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IInputActivationListener)->remove_InputActivationChanged(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IInputActivationListenerActivationChangedEventArgs::State() const { winrt::Windows::UI::Input::InputActivationState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IInputActivationListenerActivationChangedEventArgs)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IKeyboardDeliveryInterceptor::IsInterceptionEnabledWhenInForeground() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IKeyboardDeliveryInterceptor)->get_IsInterceptionEnabledWhenInForeground(&value)); return value; } template auto consume_Windows_UI_Input_IKeyboardDeliveryInterceptor::IsInterceptionEnabledWhenInForeground(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IKeyboardDeliveryInterceptor)->put_IsInterceptionEnabledWhenInForeground(value)); } template auto consume_Windows_UI_Input_IKeyboardDeliveryInterceptor::KeyDown(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IKeyboardDeliveryInterceptor)->add_KeyDown(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IKeyboardDeliveryInterceptor::KeyDown(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, KeyDown(handler)); } template auto consume_Windows_UI_Input_IKeyboardDeliveryInterceptor::KeyDown(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IKeyboardDeliveryInterceptor)->remove_KeyDown(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IKeyboardDeliveryInterceptor::KeyUp(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IKeyboardDeliveryInterceptor)->add_KeyUp(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IKeyboardDeliveryInterceptor::KeyUp(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, KeyUp(handler)); } template auto consume_Windows_UI_Input_IKeyboardDeliveryInterceptor::KeyUp(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IKeyboardDeliveryInterceptor)->remove_KeyUp(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IKeyboardDeliveryInterceptorStatics::GetForCurrentView() const { void* keyboardDeliverySettings{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IKeyboardDeliveryInterceptorStatics)->GetForCurrentView(&keyboardDeliverySettings)); return winrt::Windows::UI::Input::KeyboardDeliveryInterceptor{ keyboardDeliverySettings, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IManipulationCompletedEventArgs::PointerDeviceType() const { winrt::Windows::Devices::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationCompletedEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IManipulationCompletedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationCompletedEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IManipulationCompletedEventArgs::Cumulative() const { winrt::Windows::UI::Input::ManipulationDelta value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationCompletedEventArgs)->get_Cumulative(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IManipulationCompletedEventArgs::Velocities() const { winrt::Windows::UI::Input::ManipulationVelocities value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationCompletedEventArgs)->get_Velocities(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IManipulationCompletedEventArgs2::ContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationCompletedEventArgs2)->get_ContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IManipulationCompletedEventArgs2::CurrentContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationCompletedEventArgs2)->get_CurrentContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IManipulationInertiaStartingEventArgs::PointerDeviceType() const { winrt::Windows::Devices::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationInertiaStartingEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IManipulationInertiaStartingEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationInertiaStartingEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IManipulationInertiaStartingEventArgs::Delta() const { winrt::Windows::UI::Input::ManipulationDelta value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationInertiaStartingEventArgs)->get_Delta(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IManipulationInertiaStartingEventArgs::Cumulative() const { winrt::Windows::UI::Input::ManipulationDelta value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationInertiaStartingEventArgs)->get_Cumulative(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IManipulationInertiaStartingEventArgs::Velocities() const { winrt::Windows::UI::Input::ManipulationVelocities value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationInertiaStartingEventArgs)->get_Velocities(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IManipulationInertiaStartingEventArgs2::ContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationInertiaStartingEventArgs2)->get_ContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IManipulationStartedEventArgs::PointerDeviceType() const { winrt::Windows::Devices::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationStartedEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IManipulationStartedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationStartedEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IManipulationStartedEventArgs::Cumulative() const { winrt::Windows::UI::Input::ManipulationDelta value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationStartedEventArgs)->get_Cumulative(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IManipulationStartedEventArgs2::ContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationStartedEventArgs2)->get_ContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IManipulationUpdatedEventArgs::PointerDeviceType() const { winrt::Windows::Devices::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationUpdatedEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IManipulationUpdatedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationUpdatedEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IManipulationUpdatedEventArgs::Delta() const { winrt::Windows::UI::Input::ManipulationDelta value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationUpdatedEventArgs)->get_Delta(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IManipulationUpdatedEventArgs::Cumulative() const { winrt::Windows::UI::Input::ManipulationDelta value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationUpdatedEventArgs)->get_Cumulative(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IManipulationUpdatedEventArgs::Velocities() const { winrt::Windows::UI::Input::ManipulationVelocities value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationUpdatedEventArgs)->get_Velocities(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IManipulationUpdatedEventArgs2::ContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationUpdatedEventArgs2)->get_ContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IManipulationUpdatedEventArgs2::CurrentContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IManipulationUpdatedEventArgs2)->get_CurrentContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IMouseWheelParameters::CharTranslation() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IMouseWheelParameters)->get_CharTranslation(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IMouseWheelParameters::CharTranslation(winrt::Windows::Foundation::Point const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IMouseWheelParameters)->put_CharTranslation(impl::bind_in(value))); } template auto consume_Windows_UI_Input_IMouseWheelParameters::DeltaScale() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IMouseWheelParameters)->get_DeltaScale(&value)); return value; } template auto consume_Windows_UI_Input_IMouseWheelParameters::DeltaScale(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IMouseWheelParameters)->put_DeltaScale(value)); } template auto consume_Windows_UI_Input_IMouseWheelParameters::DeltaRotationAngle() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IMouseWheelParameters)->get_DeltaRotationAngle(&value)); return value; } template auto consume_Windows_UI_Input_IMouseWheelParameters::DeltaRotationAngle(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IMouseWheelParameters)->put_DeltaRotationAngle(value)); } template auto consume_Windows_UI_Input_IMouseWheelParameters::PageTranslation() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IMouseWheelParameters)->get_PageTranslation(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IMouseWheelParameters::PageTranslation(winrt::Windows::Foundation::Point const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IMouseWheelParameters)->put_PageTranslation(impl::bind_in(value))); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::IsActive() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->get_IsActive(&value)); return value; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::GestureSettings() const { winrt::Windows::UI::Input::GestureSettings value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->get_GestureSettings(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::GestureSettings(winrt::Windows::UI::Input::GestureSettings const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->put_GestureSettings(static_cast(value))); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::TapMinContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->get_TapMinContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::TapMinContactCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->put_TapMinContactCount(value)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::TapMaxContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->get_TapMaxContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::TapMaxContactCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->put_TapMaxContactCount(value)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::HoldMinContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->get_HoldMinContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::HoldMinContactCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->put_HoldMinContactCount(value)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::HoldMaxContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->get_HoldMaxContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::HoldMaxContactCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->put_HoldMaxContactCount(value)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::HoldRadius() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->get_HoldRadius(&value)); return value; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::HoldRadius(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->put_HoldRadius(value)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::HoldStartDelay() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->get_HoldStartDelay(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::HoldStartDelay(winrt::Windows::Foundation::TimeSpan const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->put_HoldStartDelay(impl::bind_in(value))); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::TranslationMinContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->get_TranslationMinContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::TranslationMinContactCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->put_TranslationMinContactCount(value)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::TranslationMaxContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->get_TranslationMaxContactCount(&value)); return value; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::TranslationMaxContactCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->put_TranslationMaxContactCount(value)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::ProcessDownEvent(winrt::Windows::UI::Input::PointerPoint const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->ProcessDownEvent(*(void**)(&value))); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::ProcessMoveEvents(param::vector const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->ProcessMoveEvents(*(void**)(&value))); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::ProcessUpEvent(winrt::Windows::UI::Input::PointerPoint const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->ProcessUpEvent(*(void**)(&value))); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::CompleteGesture() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->CompleteGesture()); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::ManipulationStarted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->add_ManipulationStarted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::ManipulationStarted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ManipulationStarted(handler)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::ManipulationStarted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->remove_ManipulationStarted(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::ManipulationUpdated(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->add_ManipulationUpdated(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::ManipulationUpdated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ManipulationUpdated(handler)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::ManipulationUpdated(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->remove_ManipulationUpdated(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::ManipulationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->add_ManipulationCompleted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::ManipulationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ManipulationCompleted(handler)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::ManipulationCompleted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->remove_ManipulationCompleted(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::Tapped(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->add_Tapped(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::Tapped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Tapped(handler)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::Tapped(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->remove_Tapped(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::Holding(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->add_Holding(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::Holding(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Holding(handler)); } template auto consume_Windows_UI_Input_IPhysicalGestureRecognizer::Holding(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPhysicalGestureRecognizer)->remove_Holding(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IPointerPoint::PointerDevice() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPoint)->get_PointerDevice(&value)); return winrt::Windows::Devices::Input::PointerDevice{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IPointerPoint::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPoint)->get_Position(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IPointerPoint::RawPosition() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPoint)->get_RawPosition(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IPointerPoint::PointerId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPoint)->get_PointerId(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPoint::FrameId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPoint)->get_FrameId(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPoint::Timestamp() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPoint)->get_Timestamp(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPoint::IsInContact() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPoint)->get_IsInContact(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPoint::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPoint)->get_Properties(&value)); return winrt::Windows::UI::Input::PointerPointProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IPointerPointPhysicalPosition::IsPhysicalPositionSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointPhysicalPosition)->get_IsPhysicalPositionSupported(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointPhysicalPosition::PhysicalPosition() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointPhysicalPosition)->get_PhysicalPosition(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::Pressure() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_Pressure(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::IsInverted() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_IsInverted(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::IsEraser() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_IsEraser(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::Orientation() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_Orientation(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::XTilt() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_XTilt(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::YTilt() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_YTilt(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::Twist() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_Twist(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::ContactRect() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_ContactRect(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::ContactRectRaw() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_ContactRectRaw(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::TouchConfidence() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_TouchConfidence(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::IsLeftButtonPressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_IsLeftButtonPressed(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::IsRightButtonPressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_IsRightButtonPressed(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::IsMiddleButtonPressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_IsMiddleButtonPressed(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::MouseWheelDelta() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_MouseWheelDelta(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::IsHorizontalMouseWheel() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_IsHorizontalMouseWheel(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::IsPrimary() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_IsPrimary(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::IsInRange() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_IsInRange(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::IsCanceled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_IsCanceled(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::IsBarrelButtonPressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_IsBarrelButtonPressed(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::IsXButton1Pressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_IsXButton1Pressed(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::IsXButton2Pressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_IsXButton2Pressed(&value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::PointerUpdateKind() const { winrt::Windows::UI::Input::PointerUpdateKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->get_PointerUpdateKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::HasUsage(uint32_t usagePage, uint32_t usageId) const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->HasUsage(usagePage, usageId, &value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties::GetUsageValue(uint32_t usagePage, uint32_t usageId) const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties)->GetUsageValue(usagePage, usageId, &value)); return value; } template auto consume_Windows_UI_Input_IPointerPointProperties2::ZDistance() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointProperties2)->get_ZDistance(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IPointerPointStatics::GetCurrentPoint(uint32_t pointerId) const { void* pointerPoint{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointStatics)->GetCurrentPoint(pointerId, &pointerPoint)); return winrt::Windows::UI::Input::PointerPoint{ pointerPoint, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IPointerPointStatics::GetIntermediatePoints(uint32_t pointerId) const { void* pointerPoints{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointStatics)->GetIntermediatePoints(pointerId, &pointerPoints)); return winrt::Windows::Foundation::Collections::IVector{ pointerPoints, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IPointerPointStatics::GetCurrentPoint(uint32_t pointerId, winrt::Windows::UI::Input::IPointerPointTransform const& transform) const { void* pointerPoint{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointStatics)->GetCurrentPointTransformed(pointerId, *(void**)(&transform), &pointerPoint)); return winrt::Windows::UI::Input::PointerPoint{ pointerPoint, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IPointerPointStatics::GetIntermediatePoints(uint32_t pointerId, winrt::Windows::UI::Input::IPointerPointTransform const& transform) const { void* pointerPoints{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointStatics)->GetIntermediatePointsTransformed(pointerId, *(void**)(&transform), &pointerPoints)); return winrt::Windows::Foundation::Collections::IVector{ pointerPoints, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IPointerPointTransform::Inverse() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointTransform)->get_Inverse(&value)); return winrt::Windows::UI::Input::IPointerPointTransform{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IPointerPointTransform::TryTransform(winrt::Windows::Foundation::Point const& inPoint, winrt::Windows::Foundation::Point& outPoint) const { bool returnValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointTransform)->TryTransform(impl::bind_in(inPoint), impl::bind_out(outPoint), &returnValue)); return returnValue; } template auto consume_Windows_UI_Input_IPointerPointTransform::TransformBounds(winrt::Windows::Foundation::Rect const& rect) const { winrt::Windows::Foundation::Rect returnValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerPointTransform)->TransformBounds(impl::bind_in(rect), put_abi(returnValue))); return returnValue; } template auto consume_Windows_UI_Input_IPointerVisualizationSettings::IsContactFeedbackEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerVisualizationSettings)->put_IsContactFeedbackEnabled(value)); } template auto consume_Windows_UI_Input_IPointerVisualizationSettings::IsContactFeedbackEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerVisualizationSettings)->get_IsContactFeedbackEnabled(&value)); return value; } template auto consume_Windows_UI_Input_IPointerVisualizationSettings::IsBarrelButtonFeedbackEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerVisualizationSettings)->put_IsBarrelButtonFeedbackEnabled(value)); } template auto consume_Windows_UI_Input_IPointerVisualizationSettings::IsBarrelButtonFeedbackEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerVisualizationSettings)->get_IsBarrelButtonFeedbackEnabled(&value)); return value; } template auto consume_Windows_UI_Input_IPointerVisualizationSettingsStatics::GetForCurrentView() const { void* visualizationSettings{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IPointerVisualizationSettingsStatics)->GetForCurrentView(&visualizationSettings)); return winrt::Windows::UI::Input::PointerVisualizationSettings{ visualizationSettings, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialController::Menu() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->get_Menu(&value)); return winrt::Windows::UI::Input::RadialControllerMenu{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialController::RotationResolutionInDegrees() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->get_RotationResolutionInDegrees(&value)); return value; } template auto consume_Windows_UI_Input_IRadialController::RotationResolutionInDegrees(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->put_RotationResolutionInDegrees(value)); } template auto consume_Windows_UI_Input_IRadialController::UseAutomaticHapticFeedback() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->get_UseAutomaticHapticFeedback(&value)); return value; } template auto consume_Windows_UI_Input_IRadialController::UseAutomaticHapticFeedback(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->put_UseAutomaticHapticFeedback(value)); } template auto consume_Windows_UI_Input_IRadialController::ScreenContactStarted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->add_ScreenContactStarted(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_IRadialController::ScreenContactStarted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ScreenContactStarted(handler)); } template auto consume_Windows_UI_Input_IRadialController::ScreenContactStarted(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->remove_ScreenContactStarted(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_IRadialController::ScreenContactEnded(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->add_ScreenContactEnded(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_IRadialController::ScreenContactEnded(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ScreenContactEnded(handler)); } template auto consume_Windows_UI_Input_IRadialController::ScreenContactEnded(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->remove_ScreenContactEnded(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_IRadialController::ScreenContactContinued(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->add_ScreenContactContinued(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_IRadialController::ScreenContactContinued(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ScreenContactContinued(handler)); } template auto consume_Windows_UI_Input_IRadialController::ScreenContactContinued(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->remove_ScreenContactContinued(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_IRadialController::ControlLost(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->add_ControlLost(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_IRadialController::ControlLost(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ControlLost(handler)); } template auto consume_Windows_UI_Input_IRadialController::ControlLost(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->remove_ControlLost(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_IRadialController::RotationChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->add_RotationChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IRadialController::RotationChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, RotationChanged(handler)); } template auto consume_Windows_UI_Input_IRadialController::RotationChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->remove_RotationChanged(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IRadialController::ButtonClicked(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->add_ButtonClicked(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IRadialController::ButtonClicked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ButtonClicked(handler)); } template auto consume_Windows_UI_Input_IRadialController::ButtonClicked(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->remove_ButtonClicked(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IRadialController::ControlAcquired(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->add_ControlAcquired(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_IRadialController::ControlAcquired(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ControlAcquired(handler)); } template auto consume_Windows_UI_Input_IRadialController::ControlAcquired(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController)->remove_ControlAcquired(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_IRadialController2::ButtonPressed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController2)->add_ButtonPressed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IRadialController2::ButtonPressed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ButtonPressed(handler)); } template auto consume_Windows_UI_Input_IRadialController2::ButtonPressed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController2)->remove_ButtonPressed(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IRadialController2::ButtonHolding(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController2)->add_ButtonHolding(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IRadialController2::ButtonHolding(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ButtonHolding(handler)); } template auto consume_Windows_UI_Input_IRadialController2::ButtonHolding(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController2)->remove_ButtonHolding(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IRadialController2::ButtonReleased(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController2)->add_ButtonReleased(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IRadialController2::ButtonReleased(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ButtonReleased(handler)); } template auto consume_Windows_UI_Input_IRadialController2::ButtonReleased(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialController2)->remove_ButtonReleased(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IRadialControllerButtonClickedEventArgs::Contact() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerButtonClickedEventArgs)->get_Contact(&value)); return winrt::Windows::UI::Input::RadialControllerScreenContact{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerButtonClickedEventArgs2::SimpleHapticsController() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerButtonClickedEventArgs2)->get_SimpleHapticsController(&value)); return winrt::Windows::Devices::Haptics::SimpleHapticsController{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerButtonHoldingEventArgs::Contact() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerButtonHoldingEventArgs)->get_Contact(&value)); return winrt::Windows::UI::Input::RadialControllerScreenContact{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerButtonHoldingEventArgs::SimpleHapticsController() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerButtonHoldingEventArgs)->get_SimpleHapticsController(&value)); return winrt::Windows::Devices::Haptics::SimpleHapticsController{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerButtonPressedEventArgs::Contact() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerButtonPressedEventArgs)->get_Contact(&value)); return winrt::Windows::UI::Input::RadialControllerScreenContact{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerButtonPressedEventArgs::SimpleHapticsController() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerButtonPressedEventArgs)->get_SimpleHapticsController(&value)); return winrt::Windows::Devices::Haptics::SimpleHapticsController{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerButtonReleasedEventArgs::Contact() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerButtonReleasedEventArgs)->get_Contact(&value)); return winrt::Windows::UI::Input::RadialControllerScreenContact{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerButtonReleasedEventArgs::SimpleHapticsController() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerButtonReleasedEventArgs)->get_SimpleHapticsController(&value)); return winrt::Windows::Devices::Haptics::SimpleHapticsController{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerConfiguration::SetDefaultMenuItems(param::iterable const& buttons) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerConfiguration)->SetDefaultMenuItems(*(void**)(&buttons))); } template auto consume_Windows_UI_Input_IRadialControllerConfiguration::ResetToDefaultMenuItems() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerConfiguration)->ResetToDefaultMenuItems()); } template auto consume_Windows_UI_Input_IRadialControllerConfiguration::TrySelectDefaultMenuItem(winrt::Windows::UI::Input::RadialControllerSystemMenuItemKind const& type) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerConfiguration)->TrySelectDefaultMenuItem(static_cast(type), &result)); return result; } template auto consume_Windows_UI_Input_IRadialControllerConfiguration2::ActiveControllerWhenMenuIsSuppressed(winrt::Windows::UI::Input::RadialController const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerConfiguration2)->put_ActiveControllerWhenMenuIsSuppressed(*(void**)(&value))); } template auto consume_Windows_UI_Input_IRadialControllerConfiguration2::ActiveControllerWhenMenuIsSuppressed() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerConfiguration2)->get_ActiveControllerWhenMenuIsSuppressed(&value)); return winrt::Windows::UI::Input::RadialController{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerConfiguration2::IsMenuSuppressed(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerConfiguration2)->put_IsMenuSuppressed(value)); } template auto consume_Windows_UI_Input_IRadialControllerConfiguration2::IsMenuSuppressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerConfiguration2)->get_IsMenuSuppressed(&value)); return value; } template auto consume_Windows_UI_Input_IRadialControllerConfigurationStatics::GetForCurrentView() const { void* configuration{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerConfigurationStatics)->GetForCurrentView(&configuration)); return winrt::Windows::UI::Input::RadialControllerConfiguration{ configuration, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerConfigurationStatics2::AppController(winrt::Windows::UI::Input::RadialController const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerConfigurationStatics2)->put_AppController(*(void**)(&value))); } template auto consume_Windows_UI_Input_IRadialControllerConfigurationStatics2::AppController() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerConfigurationStatics2)->get_AppController(&value)); return winrt::Windows::UI::Input::RadialController{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerConfigurationStatics2::IsAppControllerEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerConfigurationStatics2)->put_IsAppControllerEnabled(value)); } template auto consume_Windows_UI_Input_IRadialControllerConfigurationStatics2::IsAppControllerEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerConfigurationStatics2)->get_IsAppControllerEnabled(&value)); return value; } template auto consume_Windows_UI_Input_IRadialControllerControlAcquiredEventArgs::Contact() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerControlAcquiredEventArgs)->get_Contact(&value)); return winrt::Windows::UI::Input::RadialControllerScreenContact{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerControlAcquiredEventArgs2::IsButtonPressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerControlAcquiredEventArgs2)->get_IsButtonPressed(&value)); return value; } template auto consume_Windows_UI_Input_IRadialControllerControlAcquiredEventArgs2::SimpleHapticsController() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerControlAcquiredEventArgs2)->get_SimpleHapticsController(&value)); return winrt::Windows::Devices::Haptics::SimpleHapticsController{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerMenu::Items() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenu)->get_Items(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerMenu::IsEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenu)->get_IsEnabled(&value)); return value; } template auto consume_Windows_UI_Input_IRadialControllerMenu::IsEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenu)->put_IsEnabled(value)); } template auto consume_Windows_UI_Input_IRadialControllerMenu::GetSelectedMenuItem() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenu)->GetSelectedMenuItem(&result)); return winrt::Windows::UI::Input::RadialControllerMenuItem{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerMenu::SelectMenuItem(winrt::Windows::UI::Input::RadialControllerMenuItem const& menuItem) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenu)->SelectMenuItem(*(void**)(&menuItem))); } template auto consume_Windows_UI_Input_IRadialControllerMenu::TrySelectPreviouslySelectedMenuItem() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenu)->TrySelectPreviouslySelectedMenuItem(&result)); return result; } template auto consume_Windows_UI_Input_IRadialControllerMenuItem::DisplayText() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenuItem)->get_DisplayText(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerMenuItem::Tag() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenuItem)->get_Tag(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerMenuItem::Tag(winrt::Windows::Foundation::IInspectable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenuItem)->put_Tag(*(void**)(&value))); } template auto consume_Windows_UI_Input_IRadialControllerMenuItem::Invoked(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenuItem)->add_Invoked(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_IRadialControllerMenuItem::Invoked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Invoked(handler)); } template auto consume_Windows_UI_Input_IRadialControllerMenuItem::Invoked(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenuItem)->remove_Invoked(impl::bind_in(token)); } template auto consume_Windows_UI_Input_IRadialControllerMenuItemStatics::CreateFromIcon(param::hstring const& displayText, winrt::Windows::Storage::Streams::RandomAccessStreamReference const& icon) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenuItemStatics)->CreateFromIcon(*(void**)(&displayText), *(void**)(&icon), &result)); return winrt::Windows::UI::Input::RadialControllerMenuItem{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerMenuItemStatics::CreateFromKnownIcon(param::hstring const& displayText, winrt::Windows::UI::Input::RadialControllerMenuKnownIcon const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenuItemStatics)->CreateFromKnownIcon(*(void**)(&displayText), static_cast(value), &result)); return winrt::Windows::UI::Input::RadialControllerMenuItem{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerMenuItemStatics2::CreateFromFontGlyph(param::hstring const& displayText, param::hstring const& glyph, param::hstring const& fontFamily) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenuItemStatics2)->CreateFromFontGlyph(*(void**)(&displayText), *(void**)(&glyph), *(void**)(&fontFamily), &result)); return winrt::Windows::UI::Input::RadialControllerMenuItem{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerMenuItemStatics2::CreateFromFontGlyph(param::hstring const& displayText, param::hstring const& glyph, param::hstring const& fontFamily, winrt::Windows::Foundation::Uri const& fontUri) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerMenuItemStatics2)->CreateFromFontGlyphWithUri(*(void**)(&displayText), *(void**)(&glyph), *(void**)(&fontFamily), *(void**)(&fontUri), &result)); return winrt::Windows::UI::Input::RadialControllerMenuItem{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerRotationChangedEventArgs::RotationDeltaInDegrees() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerRotationChangedEventArgs)->get_RotationDeltaInDegrees(&value)); return value; } template auto consume_Windows_UI_Input_IRadialControllerRotationChangedEventArgs::Contact() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerRotationChangedEventArgs)->get_Contact(&value)); return winrt::Windows::UI::Input::RadialControllerScreenContact{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerRotationChangedEventArgs2::IsButtonPressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerRotationChangedEventArgs2)->get_IsButtonPressed(&value)); return value; } template auto consume_Windows_UI_Input_IRadialControllerRotationChangedEventArgs2::SimpleHapticsController() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerRotationChangedEventArgs2)->get_SimpleHapticsController(&value)); return winrt::Windows::Devices::Haptics::SimpleHapticsController{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerScreenContact::Bounds() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerScreenContact)->get_Bounds(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IRadialControllerScreenContact::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerScreenContact)->get_Position(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IRadialControllerScreenContactContinuedEventArgs::Contact() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerScreenContactContinuedEventArgs)->get_Contact(&value)); return winrt::Windows::UI::Input::RadialControllerScreenContact{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerScreenContactContinuedEventArgs2::IsButtonPressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerScreenContactContinuedEventArgs2)->get_IsButtonPressed(&value)); return value; } template auto consume_Windows_UI_Input_IRadialControllerScreenContactContinuedEventArgs2::SimpleHapticsController() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerScreenContactContinuedEventArgs2)->get_SimpleHapticsController(&value)); return winrt::Windows::Devices::Haptics::SimpleHapticsController{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerScreenContactEndedEventArgs::IsButtonPressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerScreenContactEndedEventArgs)->get_IsButtonPressed(&value)); return value; } template auto consume_Windows_UI_Input_IRadialControllerScreenContactEndedEventArgs::SimpleHapticsController() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerScreenContactEndedEventArgs)->get_SimpleHapticsController(&value)); return winrt::Windows::Devices::Haptics::SimpleHapticsController{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerScreenContactStartedEventArgs::Contact() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerScreenContactStartedEventArgs)->get_Contact(&value)); return winrt::Windows::UI::Input::RadialControllerScreenContact{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerScreenContactStartedEventArgs2::IsButtonPressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerScreenContactStartedEventArgs2)->get_IsButtonPressed(&value)); return value; } template auto consume_Windows_UI_Input_IRadialControllerScreenContactStartedEventArgs2::SimpleHapticsController() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerScreenContactStartedEventArgs2)->get_SimpleHapticsController(&value)); return winrt::Windows::Devices::Haptics::SimpleHapticsController{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRadialControllerStatics::IsSupported() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerStatics)->IsSupported(&result)); return result; } template auto consume_Windows_UI_Input_IRadialControllerStatics::CreateForCurrentView() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRadialControllerStatics)->CreateForCurrentView(&result)); return winrt::Windows::UI::Input::RadialController{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_IRightTappedEventArgs::PointerDeviceType() const { winrt::Windows::Devices::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRightTappedEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_IRightTappedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRightTappedEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Windows_UI_Input_IRightTappedEventArgs2::ContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::IRightTappedEventArgs2)->get_ContactCount(&value)); return value; } template auto consume_Windows_UI_Input_ISystemButtonEventController::SystemFunctionButtonPressed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemButtonEventController)->add_SystemFunctionButtonPressed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_ISystemButtonEventController::SystemFunctionButtonPressed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SystemFunctionButtonPressed(handler)); } template auto consume_Windows_UI_Input_ISystemButtonEventController::SystemFunctionButtonPressed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemButtonEventController)->remove_SystemFunctionButtonPressed(impl::bind_in(token)); } template auto consume_Windows_UI_Input_ISystemButtonEventController::SystemFunctionButtonReleased(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemButtonEventController)->add_SystemFunctionButtonReleased(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_ISystemButtonEventController::SystemFunctionButtonReleased(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SystemFunctionButtonReleased(handler)); } template auto consume_Windows_UI_Input_ISystemButtonEventController::SystemFunctionButtonReleased(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemButtonEventController)->remove_SystemFunctionButtonReleased(impl::bind_in(token)); } template auto consume_Windows_UI_Input_ISystemButtonEventController::SystemFunctionLockChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemButtonEventController)->add_SystemFunctionLockChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_ISystemButtonEventController::SystemFunctionLockChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SystemFunctionLockChanged(handler)); } template auto consume_Windows_UI_Input_ISystemButtonEventController::SystemFunctionLockChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemButtonEventController)->remove_SystemFunctionLockChanged(impl::bind_in(token)); } template auto consume_Windows_UI_Input_ISystemButtonEventController::SystemFunctionLockIndicatorChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemButtonEventController)->add_SystemFunctionLockIndicatorChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_ISystemButtonEventController::SystemFunctionLockIndicatorChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SystemFunctionLockIndicatorChanged(handler)); } template auto consume_Windows_UI_Input_ISystemButtonEventController::SystemFunctionLockIndicatorChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemButtonEventController)->remove_SystemFunctionLockIndicatorChanged(impl::bind_in(token)); } template auto consume_Windows_UI_Input_ISystemButtonEventControllerStatics::CreateForDispatcherQueue(winrt::Windows::System::DispatcherQueue const& queue) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemButtonEventControllerStatics)->CreateForDispatcherQueue(*(void**)(&queue), &result)); return winrt::Windows::UI::Input::SystemButtonEventController{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_ISystemFunctionButtonEventArgs::Timestamp() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemFunctionButtonEventArgs)->get_Timestamp(&value)); return value; } template auto consume_Windows_UI_Input_ISystemFunctionButtonEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemFunctionButtonEventArgs)->get_Handled(&value)); return value; } template auto consume_Windows_UI_Input_ISystemFunctionButtonEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemFunctionButtonEventArgs)->put_Handled(value)); } template auto consume_Windows_UI_Input_ISystemFunctionLockChangedEventArgs::Timestamp() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemFunctionLockChangedEventArgs)->get_Timestamp(&value)); return value; } template auto consume_Windows_UI_Input_ISystemFunctionLockChangedEventArgs::IsLocked() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemFunctionLockChangedEventArgs)->get_IsLocked(&value)); return value; } template auto consume_Windows_UI_Input_ISystemFunctionLockChangedEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemFunctionLockChangedEventArgs)->get_Handled(&value)); return value; } template auto consume_Windows_UI_Input_ISystemFunctionLockChangedEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemFunctionLockChangedEventArgs)->put_Handled(value)); } template auto consume_Windows_UI_Input_ISystemFunctionLockIndicatorChangedEventArgs::Timestamp() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemFunctionLockIndicatorChangedEventArgs)->get_Timestamp(&value)); return value; } template auto consume_Windows_UI_Input_ISystemFunctionLockIndicatorChangedEventArgs::IsIndicatorOn() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemFunctionLockIndicatorChangedEventArgs)->get_IsIndicatorOn(&value)); return value; } template auto consume_Windows_UI_Input_ISystemFunctionLockIndicatorChangedEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemFunctionLockIndicatorChangedEventArgs)->get_Handled(&value)); return value; } template auto consume_Windows_UI_Input_ISystemFunctionLockIndicatorChangedEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ISystemFunctionLockIndicatorChangedEventArgs)->put_Handled(value)); } template auto consume_Windows_UI_Input_ITappedEventArgs::PointerDeviceType() const { winrt::Windows::Devices::Input::PointerDeviceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITappedEventArgs)->get_PointerDeviceType(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_ITappedEventArgs::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITappedEventArgs)->get_Position(put_abi(value))); return value; } template auto consume_Windows_UI_Input_ITappedEventArgs::TapCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITappedEventArgs)->get_TapCount(&value)); return value; } template auto consume_Windows_UI_Input_ITappedEventArgs2::ContactCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITappedEventArgs2)->get_ContactCount(&value)); return value; } template auto consume_Windows_UI_Input_ITouchpadGesturesController::Enabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGesturesController)->get_Enabled(&value)); return value; } template auto consume_Windows_UI_Input_ITouchpadGesturesController::Enabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGesturesController)->put_Enabled(value)); } template auto consume_Windows_UI_Input_ITouchpadGesturesController::SupportedGestures() const { winrt::Windows::UI::Input::TouchpadGlobalGestureKinds value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGesturesController)->get_SupportedGestures(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_ITouchpadGesturesController::SupportedGestures(winrt::Windows::UI::Input::TouchpadGlobalGestureKinds const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGesturesController)->put_SupportedGestures(static_cast(value))); } template auto consume_Windows_UI_Input_ITouchpadGesturesController::PointerPressed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGesturesController)->add_PointerPressed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_ITouchpadGesturesController::PointerPressed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PointerPressed(handler)); } template auto consume_Windows_UI_Input_ITouchpadGesturesController::PointerPressed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGesturesController)->remove_PointerPressed(impl::bind_in(token)); } template auto consume_Windows_UI_Input_ITouchpadGesturesController::PointerMoved(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGesturesController)->add_PointerMoved(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_ITouchpadGesturesController::PointerMoved(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PointerMoved(handler)); } template auto consume_Windows_UI_Input_ITouchpadGesturesController::PointerMoved(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGesturesController)->remove_PointerMoved(impl::bind_in(token)); } template auto consume_Windows_UI_Input_ITouchpadGesturesController::PointerReleased(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGesturesController)->add_PointerReleased(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_ITouchpadGesturesController::PointerReleased(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PointerReleased(handler)); } template auto consume_Windows_UI_Input_ITouchpadGesturesController::PointerReleased(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGesturesController)->remove_PointerReleased(impl::bind_in(token)); } template auto consume_Windows_UI_Input_ITouchpadGesturesController::GlobalActionPerformed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGesturesController)->add_GlobalActionPerformed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Input_ITouchpadGesturesController::GlobalActionPerformed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, GlobalActionPerformed(handler)); } template auto consume_Windows_UI_Input_ITouchpadGesturesController::GlobalActionPerformed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGesturesController)->remove_GlobalActionPerformed(impl::bind_in(token)); } template auto consume_Windows_UI_Input_ITouchpadGesturesControllerStatics::IsSupported() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGesturesControllerStatics)->IsSupported(&result)); return result; } template auto consume_Windows_UI_Input_ITouchpadGesturesControllerStatics::CreateForProcess() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGesturesControllerStatics)->CreateForProcess(&result)); return winrt::Windows::UI::Input::TouchpadGesturesController{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_ITouchpadGlobalActionEventArgs::Action() const { winrt::Windows::UI::Input::TouchpadGlobalAction value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGlobalActionEventArgs)->get_Action(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_ITouchpadGlobalActionEventArgs::PointerDevice() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::ITouchpadGlobalActionEventArgs)->get_PointerDevice(&value)); return winrt::Windows::Devices::Input::PointerDevice{ value, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #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_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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactCount()); 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_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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactCount()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_Starting(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Starting(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Starting(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Starting(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Completed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Completed(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Completed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Completed(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Canceled(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Canceled(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Canceled(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Canceled(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** current) noexcept final try { clear_abi(current); typename D::abi_guard guard(this->shim()); *current = detach_from(this->shim().GetForCurrentView()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_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_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_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 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_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_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_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_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_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_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_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_CrossSlideThresholds(struct struct_Windows_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_Windows_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_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_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_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_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 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 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 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 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 CompleteGesture() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CompleteGesture(); 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_TapMinContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TapMinContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TapMinContactCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TapMinContactCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TapMaxContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TapMaxContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TapMaxContactCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TapMaxContactCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HoldMinContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HoldMinContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HoldMinContactCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HoldMinContactCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HoldMaxContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HoldMaxContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HoldMaxContactCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HoldMaxContactCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HoldRadius(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HoldRadius()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HoldRadius(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HoldRadius(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HoldStartDelay(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HoldStartDelay()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HoldStartDelay(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HoldStartDelay(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TranslationMinContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TranslationMinContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TranslationMinContactCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TranslationMinContactCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TranslationMaxContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TranslationMaxContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TranslationMaxContactCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TranslationMaxContactCount(value); 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_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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CurrentContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurrentContactCount()); 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 { 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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsInterceptionEnabledWhenInForeground(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsInterceptionEnabledWhenInForeground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsInterceptionEnabledWhenInForeground(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsInterceptionEnabledWhenInForeground(value); return 0; } catch (...) { return to_hresult(); } 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; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** keyboardDeliverySettings) noexcept final try { clear_abi(keyboardDeliverySettings); typename D::abi_guard guard(this->shim()); *keyboardDeliverySettings = detach_from(this->shim().GetForCurrentView()); 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_Cumulative(struct struct_Windows_UI_Input_ManipulationDelta* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Cumulative()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Velocities(struct struct_Windows_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_ContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CurrentContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurrentContactCount()); 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_Delta(struct struct_Windows_UI_Input_ManipulationDelta* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Delta()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Cumulative(struct struct_Windows_UI_Input_ManipulationDelta* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Cumulative()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Velocities(struct struct_Windows_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_ContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactCount()); 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_Cumulative(struct struct_Windows_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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactCount()); 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_Delta(struct struct_Windows_UI_Input_ManipulationDelta* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Delta()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Cumulative(struct struct_Windows_UI_Input_ManipulationDelta* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Cumulative()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Velocities(struct struct_Windows_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_ContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CurrentContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurrentContactCount()); 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_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_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_TapMinContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TapMinContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TapMinContactCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TapMinContactCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TapMaxContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TapMaxContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TapMaxContactCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TapMaxContactCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HoldMinContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HoldMinContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HoldMinContactCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HoldMinContactCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HoldMaxContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HoldMaxContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HoldMaxContactCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HoldMaxContactCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HoldRadius(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HoldRadius()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HoldRadius(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HoldRadius(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HoldStartDelay(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HoldStartDelay()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HoldStartDelay(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HoldStartDelay(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TranslationMinContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TranslationMinContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TranslationMinContactCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TranslationMinContactCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TranslationMaxContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TranslationMaxContactCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TranslationMaxContactCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TranslationMaxContactCount(value); 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 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 CompleteGesture() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CompleteGesture(); return 0; } catch (...) { return to_hresult(); } 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_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_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_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; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PointerDevice(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerDevice()); 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_RawPosition(winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RawPosition()); 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_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_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_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_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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsPhysicalPositionSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsPhysicalPositionSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PhysicalPosition(winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PhysicalPosition()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_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_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_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_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(); } 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_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_ContactRectRaw(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactRectRaw()); 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_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_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_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_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_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_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_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_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_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_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_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 HasUsage(uint32_t usagePage, uint32_t usageId, bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasUsage(usagePage, usageId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetUsageValue(uint32_t usagePage, uint32_t usageId, int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetUsageValue(usagePage, usageId)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ZDistance(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ZDistance()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetCurrentPoint(uint32_t pointerId, void** pointerPoint) noexcept final try { clear_abi(pointerPoint); typename D::abi_guard guard(this->shim()); *pointerPoint = detach_from(this->shim().GetCurrentPoint(pointerId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetIntermediatePoints(uint32_t pointerId, void** pointerPoints) noexcept final try { clear_abi(pointerPoints); typename D::abi_guard guard(this->shim()); *pointerPoints = detach_from>(this->shim().GetIntermediatePoints(pointerId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetCurrentPointTransformed(uint32_t pointerId, void* transform, void** pointerPoint) noexcept final try { clear_abi(pointerPoint); typename D::abi_guard guard(this->shim()); *pointerPoint = detach_from(this->shim().GetCurrentPoint(pointerId, *reinterpret_cast(&transform))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetIntermediatePointsTransformed(uint32_t pointerId, void* transform, void** pointerPoints) noexcept final try { clear_abi(pointerPoints); typename D::abi_guard guard(this->shim()); *pointerPoints = detach_from>(this->shim().GetIntermediatePoints(pointerId, *reinterpret_cast(&transform))); 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* returnValue) noexcept final try { zero_abi(outPoint); typename D::abi_guard guard(this->shim()); *returnValue = detach_from(this->shim().TryTransform(*reinterpret_cast(&inPoint), *reinterpret_cast(outPoint))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TransformBounds(winrt::Windows::Foundation::Rect rect, winrt::Windows::Foundation::Rect* returnValue) noexcept final try { zero_abi(returnValue); typename D::abi_guard guard(this->shim()); *returnValue = detach_from(this->shim().TransformBounds(*reinterpret_cast(&rect))); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_IsContactFeedbackEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsContactFeedbackEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsContactFeedbackEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsContactFeedbackEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsBarrelButtonFeedbackEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsBarrelButtonFeedbackEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsBarrelButtonFeedbackEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsBarrelButtonFeedbackEnabled()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** visualizationSettings) noexcept final try { clear_abi(visualizationSettings); typename D::abi_guard guard(this->shim()); *visualizationSettings = detach_from(this->shim().GetForCurrentView()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Menu(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Menu()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RotationResolutionInDegrees(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RotationResolutionInDegrees()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RotationResolutionInDegrees(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RotationResolutionInDegrees(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UseAutomaticHapticFeedback(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UseAutomaticHapticFeedback()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_UseAutomaticHapticFeedback(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UseAutomaticHapticFeedback(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_ScreenContactStarted(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().ScreenContactStarted(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ScreenContactStarted(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ScreenContactStarted(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_ScreenContactEnded(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().ScreenContactEnded(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ScreenContactEnded(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ScreenContactEnded(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_ScreenContactContinued(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().ScreenContactContinued(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ScreenContactContinued(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ScreenContactContinued(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_ControlLost(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().ControlLost(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ControlLost(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ControlLost(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_RotationChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().RotationChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_RotationChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().RotationChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ButtonClicked(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ButtonClicked(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ButtonClicked(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ButtonClicked(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ControlAcquired(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().ControlAcquired(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ControlAcquired(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ControlAcquired(*reinterpret_cast(&cookie)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_ButtonPressed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ButtonPressed(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ButtonPressed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ButtonPressed(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ButtonHolding(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ButtonHolding(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ButtonHolding(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ButtonHolding(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ButtonReleased(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ButtonReleased(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ButtonReleased(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ButtonReleased(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Contact(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Contact()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SimpleHapticsController(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SimpleHapticsController()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Contact(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Contact()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SimpleHapticsController(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SimpleHapticsController()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Contact(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Contact()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SimpleHapticsController(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SimpleHapticsController()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Contact(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Contact()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SimpleHapticsController(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SimpleHapticsController()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetDefaultMenuItems(void* buttons) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetDefaultMenuItems(*reinterpret_cast const*>(&buttons)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResetToDefaultMenuItems() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ResetToDefaultMenuItems(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TrySelectDefaultMenuItem(int32_t type, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TrySelectDefaultMenuItem(*reinterpret_cast(&type))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_ActiveControllerWhenMenuIsSuppressed(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ActiveControllerWhenMenuIsSuppressed(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ActiveControllerWhenMenuIsSuppressed(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActiveControllerWhenMenuIsSuppressed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsMenuSuppressed(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsMenuSuppressed(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsMenuSuppressed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsMenuSuppressed()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** configuration) noexcept final try { clear_abi(configuration); typename D::abi_guard guard(this->shim()); *configuration = detach_from(this->shim().GetForCurrentView()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_AppController(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AppController(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppController(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppController()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsAppControllerEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsAppControllerEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAppControllerEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAppControllerEnabled()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Contact(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Contact()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsButtonPressed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsButtonPressed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SimpleHapticsController(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SimpleHapticsController()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Items(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Items()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSelectedMenuItem(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetSelectedMenuItem()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SelectMenuItem(void* menuItem) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectMenuItem(*reinterpret_cast(&menuItem)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TrySelectPreviouslySelectedMenuItem(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TrySelectPreviouslySelectedMenuItem()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DisplayText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Tag(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tag()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Tag(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Tag(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Invoked(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Invoked(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Invoked(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Invoked(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateFromIcon(void* displayText, void* icon, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateFromIcon(*reinterpret_cast(&displayText), *reinterpret_cast(&icon))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFromKnownIcon(void* displayText, int32_t value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateFromKnownIcon(*reinterpret_cast(&displayText), *reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateFromFontGlyph(void* displayText, void* glyph, void* fontFamily, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateFromFontGlyph(*reinterpret_cast(&displayText), *reinterpret_cast(&glyph), *reinterpret_cast(&fontFamily))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFromFontGlyphWithUri(void* displayText, void* glyph, void* fontFamily, void* fontUri, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateFromFontGlyph(*reinterpret_cast(&displayText), *reinterpret_cast(&glyph), *reinterpret_cast(&fontFamily), *reinterpret_cast(&fontUri))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RotationDeltaInDegrees(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RotationDeltaInDegrees()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Contact(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Contact()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsButtonPressed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsButtonPressed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SimpleHapticsController(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SimpleHapticsController()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Bounds(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Bounds()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_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_Contact(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Contact()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsButtonPressed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsButtonPressed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SimpleHapticsController(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SimpleHapticsController()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsButtonPressed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsButtonPressed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SimpleHapticsController(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SimpleHapticsController()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Contact(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Contact()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsButtonPressed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsButtonPressed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SimpleHapticsController(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SimpleHapticsController()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsSupported(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateForCurrentView(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateForCurrentView()); 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_ContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactCount()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_SystemFunctionButtonPressed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SystemFunctionButtonPressed(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SystemFunctionButtonPressed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SystemFunctionButtonPressed(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_SystemFunctionButtonReleased(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SystemFunctionButtonReleased(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SystemFunctionButtonReleased(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SystemFunctionButtonReleased(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_SystemFunctionLockChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SystemFunctionLockChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SystemFunctionLockChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SystemFunctionLockChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_SystemFunctionLockIndicatorChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SystemFunctionLockIndicatorChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SystemFunctionLockIndicatorChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SystemFunctionLockIndicatorChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateForDispatcherQueue(void* queue, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateForDispatcherQueue(*reinterpret_cast(&queue))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_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_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_IsLocked(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsLocked()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall 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_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_IsIndicatorOn(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsIndicatorOn()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_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_ContactCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactCount()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Enabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Enabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Enabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Enabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedGestures(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportedGestures()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SupportedGestures(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SupportedGestures(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } 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_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_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_GlobalActionPerformed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().GlobalActionPerformed(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_GlobalActionPerformed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().GlobalActionPerformed(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsSupported(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateForProcess(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateForProcess()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Action(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Action()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerDevice(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerDevice()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::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|(TouchpadGlobalGestureKinds const left, TouchpadGlobalGestureKinds const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(TouchpadGlobalGestureKinds& left, TouchpadGlobalGestureKinds const right) noexcept { left = left | right; return left; } constexpr auto operator&(TouchpadGlobalGestureKinds const left, TouchpadGlobalGestureKinds const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(TouchpadGlobalGestureKinds& left, TouchpadGlobalGestureKinds const right) noexcept { left = left & right; return left; } constexpr auto operator~(TouchpadGlobalGestureKinds const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(TouchpadGlobalGestureKinds const left, TouchpadGlobalGestureKinds const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(TouchpadGlobalGestureKinds& left, TouchpadGlobalGestureKinds const right) noexcept { left = left ^ right; return left; } inline auto EdgeGesture::GetForCurrentView() { return impl::call_factory_cast([](IEdgeGestureStatics const& f) { return f.GetForCurrentView(); }); } inline GestureRecognizer::GestureRecognizer() : GestureRecognizer(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto KeyboardDeliveryInterceptor::GetForCurrentView() { return impl::call_factory_cast([](IKeyboardDeliveryInterceptorStatics const& f) { return f.GetForCurrentView(); }); } inline PhysicalGestureRecognizer::PhysicalGestureRecognizer() : PhysicalGestureRecognizer(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto PointerPoint::GetCurrentPoint(uint32_t pointerId) { return impl::call_factory([&](IPointerPointStatics const& f) { return f.GetCurrentPoint(pointerId); }); } inline auto PointerPoint::GetIntermediatePoints(uint32_t pointerId) { return impl::call_factory([&](IPointerPointStatics const& f) { return f.GetIntermediatePoints(pointerId); }); } inline auto PointerPoint::GetCurrentPoint(uint32_t pointerId, winrt::Windows::UI::Input::IPointerPointTransform const& transform) { return impl::call_factory([&](IPointerPointStatics const& f) { return f.GetCurrentPoint(pointerId, transform); }); } inline auto PointerPoint::GetIntermediatePoints(uint32_t pointerId, winrt::Windows::UI::Input::IPointerPointTransform const& transform) { return impl::call_factory([&](IPointerPointStatics const& f) { return f.GetIntermediatePoints(pointerId, transform); }); } inline auto PointerVisualizationSettings::GetForCurrentView() { return impl::call_factory_cast([](IPointerVisualizationSettingsStatics const& f) { return f.GetForCurrentView(); }); } inline auto RadialController::IsSupported() { return impl::call_factory_cast([](IRadialControllerStatics const& f) { return f.IsSupported(); }); } inline auto RadialController::CreateForCurrentView() { return impl::call_factory_cast([](IRadialControllerStatics const& f) { return f.CreateForCurrentView(); }); } inline auto RadialControllerConfiguration::GetForCurrentView() { return impl::call_factory_cast([](IRadialControllerConfigurationStatics const& f) { return f.GetForCurrentView(); }); } inline auto RadialControllerConfiguration::AppController(winrt::Windows::UI::Input::RadialController const& value) { impl::call_factory([&](IRadialControllerConfigurationStatics2 const& f) { return f.AppController(value); }); } inline auto RadialControllerConfiguration::AppController() { return impl::call_factory_cast([](IRadialControllerConfigurationStatics2 const& f) { return f.AppController(); }); } inline auto RadialControllerConfiguration::IsAppControllerEnabled(bool value) { impl::call_factory([&](IRadialControllerConfigurationStatics2 const& f) { return f.IsAppControllerEnabled(value); }); } inline auto RadialControllerConfiguration::IsAppControllerEnabled() { return impl::call_factory_cast([](IRadialControllerConfigurationStatics2 const& f) { return f.IsAppControllerEnabled(); }); } inline auto RadialControllerMenuItem::CreateFromIcon(param::hstring const& displayText, winrt::Windows::Storage::Streams::RandomAccessStreamReference const& icon) { return impl::call_factory([&](IRadialControllerMenuItemStatics const& f) { return f.CreateFromIcon(displayText, icon); }); } inline auto RadialControllerMenuItem::CreateFromKnownIcon(param::hstring const& displayText, winrt::Windows::UI::Input::RadialControllerMenuKnownIcon const& value) { return impl::call_factory([&](IRadialControllerMenuItemStatics const& f) { return f.CreateFromKnownIcon(displayText, value); }); } inline auto RadialControllerMenuItem::CreateFromFontGlyph(param::hstring const& displayText, param::hstring const& glyph, param::hstring const& fontFamily) { return impl::call_factory([&](IRadialControllerMenuItemStatics2 const& f) { return f.CreateFromFontGlyph(displayText, glyph, fontFamily); }); } inline auto RadialControllerMenuItem::CreateFromFontGlyph(param::hstring const& displayText, param::hstring const& glyph, param::hstring const& fontFamily, winrt::Windows::Foundation::Uri const& fontUri) { return impl::call_factory([&](IRadialControllerMenuItemStatics2 const& f) { return f.CreateFromFontGlyph(displayText, glyph, fontFamily, fontUri); }); } inline auto SystemButtonEventController::CreateForDispatcherQueue(winrt::Windows::System::DispatcherQueue const& queue) { return impl::call_factory([&](ISystemButtonEventControllerStatics const& f) { return f.CreateForDispatcherQueue(queue); }); } inline auto TouchpadGesturesController::IsSupported() { return impl::call_factory_cast([](ITouchpadGesturesControllerStatics const& f) { return f.IsSupported(); }); } inline auto TouchpadGesturesController::CreateForProcess() { return impl::call_factory_cast([](ITouchpadGesturesControllerStatics const& f) { return f.CreateForProcess(); }); } } 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