// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_UI_ViewManagement_Core_H #define WINRT_Windows_UI_ViewManagement_Core_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.ViewManagement.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.UI.ViewManagement.Core.2.h" namespace winrt::impl { template auto consume_Windows_UI_ViewManagement_Core_ICoreFrameworkInputView::PrimaryViewAnimationStarting(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreFrameworkInputView)->add_PrimaryViewAnimationStarting(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_Core_ICoreFrameworkInputView::PrimaryViewAnimationStarting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PrimaryViewAnimationStarting(handler)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreFrameworkInputView::PrimaryViewAnimationStarting(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreFrameworkInputView)->remove_PrimaryViewAnimationStarting(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreFrameworkInputView::OcclusionsChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreFrameworkInputView)->add_OcclusionsChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_Core_ICoreFrameworkInputView::OcclusionsChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, OcclusionsChanged(handler)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreFrameworkInputView::OcclusionsChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreFrameworkInputView)->remove_OcclusionsChanged(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreFrameworkInputViewAnimationStartingEventArgs::Occlusions() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreFrameworkInputViewAnimationStartingEventArgs)->get_Occlusions(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_Core_ICoreFrameworkInputViewAnimationStartingEventArgs::FrameworkAnimationRecommended() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreFrameworkInputViewAnimationStartingEventArgs)->get_FrameworkAnimationRecommended(&value)); return value; } template auto consume_Windows_UI_ViewManagement_Core_ICoreFrameworkInputViewAnimationStartingEventArgs::AnimationDuration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreFrameworkInputViewAnimationStartingEventArgs)->get_AnimationDuration(put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_Core_ICoreFrameworkInputViewOcclusionsChangedEventArgs::Occlusions() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreFrameworkInputViewOcclusionsChangedEventArgs)->get_Occlusions(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_Core_ICoreFrameworkInputViewOcclusionsChangedEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreFrameworkInputViewOcclusionsChangedEventArgs)->get_Handled(&value)); return value; } template auto consume_Windows_UI_ViewManagement_Core_ICoreFrameworkInputViewStatics::GetForUIContext(winrt::Windows::UI::UIContext const& context) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreFrameworkInputViewStatics)->GetForUIContext(*(void**)(&context), &result)); return winrt::Windows::UI::ViewManagement::Core::CoreFrameworkInputView{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_Core_ICoreFrameworkInputViewStatics::GetForCurrentView() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreFrameworkInputViewStatics)->GetForCurrentView(&result)); return winrt::Windows::UI::ViewManagement::Core::CoreFrameworkInputView{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView::OcclusionsChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView)->add_OcclusionsChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView::OcclusionsChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, OcclusionsChanged(handler)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView::OcclusionsChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView)->remove_OcclusionsChanged(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView::GetCoreInputViewOcclusions() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView)->GetCoreInputViewOcclusions(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView::TryShowPrimaryView() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView)->TryShowPrimaryView(&result)); return result; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView::TryHidePrimaryView() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView)->TryHidePrimaryView(&result)); return result; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView2::XYFocusTransferringFromPrimaryView(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView2)->add_XYFocusTransferringFromPrimaryView(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView2::XYFocusTransferringFromPrimaryView(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, XYFocusTransferringFromPrimaryView(handler)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView2::XYFocusTransferringFromPrimaryView(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView2)->remove_XYFocusTransferringFromPrimaryView(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView2::XYFocusTransferredToPrimaryView(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView2)->add_XYFocusTransferredToPrimaryView(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView2::XYFocusTransferredToPrimaryView(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, XYFocusTransferredToPrimaryView(handler)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView2::XYFocusTransferredToPrimaryView(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView2)->remove_XYFocusTransferredToPrimaryView(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView2::TryTransferXYFocusToPrimaryView(winrt::Windows::Foundation::Rect const& origin, winrt::Windows::UI::ViewManagement::Core::CoreInputViewXYFocusTransferDirection const& direction) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView2)->TryTransferXYFocusToPrimaryView(impl::bind_in(origin), static_cast(direction), &result)); return result; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView3::TryShow() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView3)->TryShow(&result)); return result; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView3::TryShow(winrt::Windows::UI::ViewManagement::Core::CoreInputViewKind const& type) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView3)->TryShowWithKind(static_cast(type), &result)); return result; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView3::TryHide() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView3)->TryHide(&result)); return result; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView4::PrimaryViewShowing(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView4)->add_PrimaryViewShowing(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView4::PrimaryViewShowing(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PrimaryViewShowing(handler)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView4::PrimaryViewShowing(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView4)->remove_PrimaryViewShowing(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView4::PrimaryViewHiding(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView4)->add_PrimaryViewHiding(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView4::PrimaryViewHiding(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PrimaryViewHiding(handler)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView4::PrimaryViewHiding(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView4)->remove_PrimaryViewHiding(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView5::IsKindSupported(winrt::Windows::UI::ViewManagement::Core::CoreInputViewKind const& type) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView5)->IsKindSupported(static_cast(type), &result)); return result; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView5::SupportedKindsChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView5)->add_SupportedKindsChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView5::SupportedKindsChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SupportedKindsChanged(handler)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView5::SupportedKindsChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView5)->remove_SupportedKindsChanged(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView5::PrimaryViewAnimationStarting(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView5)->add_PrimaryViewAnimationStarting(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView5::PrimaryViewAnimationStarting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PrimaryViewAnimationStarting(handler)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputView5::PrimaryViewAnimationStarting(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputView5)->remove_PrimaryViewAnimationStarting(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewAnimationStartingEventArgs::Occlusions() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewAnimationStartingEventArgs)->get_Occlusions(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewAnimationStartingEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewAnimationStartingEventArgs)->get_Handled(&value)); return value; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewAnimationStartingEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewAnimationStartingEventArgs)->put_Handled(value)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewAnimationStartingEventArgs::AnimationDuration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewAnimationStartingEventArgs)->get_AnimationDuration(put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewHidingEventArgs::TryCancel() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewHidingEventArgs)->TryCancel(&result)); return result; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewOcclusion::OccludingRect() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewOcclusion)->get_OccludingRect(put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewOcclusion::OcclusionKind() const { winrt::Windows::UI::ViewManagement::Core::CoreInputViewOcclusionKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewOcclusion)->get_OcclusionKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewOcclusionsChangedEventArgs::Occlusions() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewOcclusionsChangedEventArgs)->get_Occlusions(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewOcclusionsChangedEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewOcclusionsChangedEventArgs)->get_Handled(&value)); return value; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewOcclusionsChangedEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewOcclusionsChangedEventArgs)->put_Handled(value)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewShowingEventArgs::TryCancel() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewShowingEventArgs)->TryCancel(&result)); return result; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewStatics::GetForCurrentView() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewStatics)->GetForCurrentView(&result)); return winrt::Windows::UI::ViewManagement::Core::CoreInputView{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewStatics2::GetForUIContext(winrt::Windows::UI::UIContext const& context) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewStatics2)->GetForUIContext(*(void**)(&context), &result)); return winrt::Windows::UI::ViewManagement::Core::CoreInputView{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewTransferringXYFocusEventArgs::Origin() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewTransferringXYFocusEventArgs)->get_Origin(put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewTransferringXYFocusEventArgs::Direction() const { winrt::Windows::UI::ViewManagement::Core::CoreInputViewXYFocusTransferDirection value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewTransferringXYFocusEventArgs)->get_Direction(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewTransferringXYFocusEventArgs::TransferHandled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewTransferringXYFocusEventArgs)->put_TransferHandled(value)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewTransferringXYFocusEventArgs::TransferHandled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewTransferringXYFocusEventArgs)->get_TransferHandled(&value)); return value; } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewTransferringXYFocusEventArgs::KeepPrimaryViewVisible(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewTransferringXYFocusEventArgs)->put_KeepPrimaryViewVisible(value)); } template auto consume_Windows_UI_ViewManagement_Core_ICoreInputViewTransferringXYFocusEventArgs::KeepPrimaryViewVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::ICoreInputViewTransferringXYFocusEventArgs)->get_KeepPrimaryViewVisible(&value)); return value; } template auto consume_Windows_UI_ViewManagement_Core_IUISettingsController::SetAdvancedEffectsEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::IUISettingsController)->SetAdvancedEffectsEnabled(value)); } template auto consume_Windows_UI_ViewManagement_Core_IUISettingsController::SetAnimationsEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::IUISettingsController)->SetAnimationsEnabled(value)); } template auto consume_Windows_UI_ViewManagement_Core_IUISettingsController::SetAutoHideScrollBars(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::IUISettingsController)->SetAutoHideScrollBars(value)); } template auto consume_Windows_UI_ViewManagement_Core_IUISettingsController::SetMessageDuration(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::IUISettingsController)->SetMessageDuration(value)); } template auto consume_Windows_UI_ViewManagement_Core_IUISettingsController::SetTextScaleFactor(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::IUISettingsController)->SetTextScaleFactor(value)); } template auto consume_Windows_UI_ViewManagement_Core_IUISettingsControllerStatics::RequestDefaultAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::Core::IUISettingsControllerStatics)->RequestDefaultAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_PrimaryViewAnimationStarting(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PrimaryViewAnimationStarting(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PrimaryViewAnimationStarting(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PrimaryViewAnimationStarting(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_OcclusionsChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().OcclusionsChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_OcclusionsChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().OcclusionsChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Occlusions(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Occlusions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FrameworkAnimationRecommended(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FrameworkAnimationRecommended()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AnimationDuration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AnimationDuration()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Occlusions(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Occlusions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForUIContext(void* context, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForUIContext(*reinterpret_cast(&context))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetForCurrentView(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForCurrentView()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_OcclusionsChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().OcclusionsChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_OcclusionsChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().OcclusionsChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall GetCoreInputViewOcclusions(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetCoreInputViewOcclusions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryShowPrimaryView(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryShowPrimaryView()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryHidePrimaryView(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryHidePrimaryView()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_XYFocusTransferringFromPrimaryView(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().XYFocusTransferringFromPrimaryView(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_XYFocusTransferringFromPrimaryView(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().XYFocusTransferringFromPrimaryView(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_XYFocusTransferredToPrimaryView(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().XYFocusTransferredToPrimaryView(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_XYFocusTransferredToPrimaryView(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().XYFocusTransferredToPrimaryView(*reinterpret_cast(&token)); return 0; } int32_t __stdcall TryTransferXYFocusToPrimaryView(winrt::Windows::Foundation::Rect origin, int32_t direction, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryTransferXYFocusToPrimaryView(*reinterpret_cast(&origin), *reinterpret_cast(&direction))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall TryShow(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryShow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryShowWithKind(int32_t type, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryShow(*reinterpret_cast(&type))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryHide(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryHide()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_PrimaryViewShowing(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PrimaryViewShowing(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PrimaryViewShowing(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PrimaryViewShowing(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PrimaryViewHiding(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PrimaryViewHiding(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PrimaryViewHiding(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PrimaryViewHiding(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsKindSupported(int32_t type, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsKindSupported(*reinterpret_cast(&type))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_SupportedKindsChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SupportedKindsChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SupportedKindsChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SupportedKindsChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PrimaryViewAnimationStarting(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PrimaryViewAnimationStarting(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PrimaryViewAnimationStarting(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PrimaryViewAnimationStarting(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Occlusions(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Occlusions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AnimationDuration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AnimationDuration()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall TryCancel(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryCancel()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OccludingRect(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OccludingRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OcclusionKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OcclusionKind()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Occlusions(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Occlusions()); 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 TryCancel(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryCancel()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForCurrentView()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForUIContext(void* context, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForUIContext(*reinterpret_cast(&context))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Origin(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Origin()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Direction(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Direction()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TransferHandled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TransferHandled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TransferHandled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TransferHandled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_KeepPrimaryViewVisible(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().KeepPrimaryViewVisible(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeepPrimaryViewVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeepPrimaryViewVisible()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetAdvancedEffectsEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetAdvancedEffectsEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetAnimationsEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetAnimationsEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetAutoHideScrollBars(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetAutoHideScrollBars(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetMessageDuration(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetMessageDuration(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetTextScaleFactor(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetTextScaleFactor(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RequestDefaultAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestDefaultAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::UI::ViewManagement::Core { inline auto CoreFrameworkInputView::GetForUIContext(winrt::Windows::UI::UIContext const& context) { return impl::call_factory([&](ICoreFrameworkInputViewStatics const& f) { return f.GetForUIContext(context); }); } inline auto CoreFrameworkInputView::GetForCurrentView() { return impl::call_factory_cast([](ICoreFrameworkInputViewStatics const& f) { return f.GetForCurrentView(); }); } inline auto CoreInputView::GetForCurrentView() { return impl::call_factory_cast([](ICoreInputViewStatics const& f) { return f.GetForCurrentView(); }); } inline auto CoreInputView::GetForUIContext(winrt::Windows::UI::UIContext const& context) { return impl::call_factory([&](ICoreInputViewStatics2 const& f) { return f.GetForUIContext(context); }); } inline auto UISettingsController::RequestDefaultAsync() { return impl::call_factory_cast(*)(IUISettingsControllerStatics const&), UISettingsController, IUISettingsControllerStatics>([](IUISettingsControllerStatics const& f) { return f.RequestDefaultAsync(); }); } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif