// WARNING: Please don't edit this file. It was generated by C++/WinRT // v2.0.250303.1 #pragma once #ifndef WINRT_Microsoft_UI_Composition_SystemBackdrops_H #define WINRT_Microsoft_UI_Composition_SystemBackdrops_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.250303.1" #include "winrt/Microsoft.UI.Composition.h" #include "winrt/impl/Microsoft.UI.2.h" #include "winrt/impl/Microsoft.UI.Composition.2.h" #include "winrt/impl/Microsoft.UI.Composition.SystemBackdrops.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.UI.Composition.2.h" #include "winrt/impl/Windows.UI.Core.2.h" namespace winrt::impl { template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< D>::FallbackColor() const { winrt::Windows::UI::Color value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FallbackColor(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FallbackColor(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< D>::FallbackColor(winrt::Windows::UI::Color const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_FallbackColor(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_FallbackColor(impl::bind_in(value))); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< D>::LuminosityOpacity() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LuminosityOpacity(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LuminosityOpacity(&value)); } return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< D>::LuminosityOpacity(float value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_LuminosityOpacity(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_LuminosityOpacity(value)); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< D>::TintColor() const { winrt::Windows::UI::Color value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_TintColor(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_TintColor(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< D>::TintColor(winrt::Windows::UI::Color const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_TintColor(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_TintColor(impl::bind_in(value))); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< D>::TintOpacity() const { float value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_TintOpacity(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_TintOpacity(&value)); } return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< D>::TintOpacity(float value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_TintOpacity(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_TintOpacity(value)); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController2< D>::ResetProperties() const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicController2>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicController2, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ResetProperties()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ResetProperties()); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController3< D>::Kind() const { winrt::Microsoft::UI::Composition::SystemBackdrops::DesktopAcrylicKind value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicController3>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicController3, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_Kind(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_Kind(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController3< D>::Kind(winrt::Microsoft::UI::Composition::SystemBackdrops:: DesktopAcrylicKind const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicController3>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicController3, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Kind(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Kind(static_cast(value))); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicControllerStatics< D>::IsSupported() const { bool result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicControllerStatics>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: IDesktopAcrylicControllerStatics, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->IsSupported(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->IsSupported(&result)); } return result; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< D>::FallbackColor() const { winrt::Windows::UI::Color value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FallbackColor(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FallbackColor(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< D>::FallbackColor(winrt::Windows::UI::Color const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_FallbackColor(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_FallbackColor(impl::bind_in(value))); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< D>::LuminosityOpacity() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LuminosityOpacity(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LuminosityOpacity(&value)); } return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< D>::LuminosityOpacity(float value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_LuminosityOpacity(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_LuminosityOpacity(value)); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< D>::TintColor() const { winrt::Windows::UI::Color value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_TintColor(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_TintColor(put_abi(value))); } return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< D>::TintColor(winrt::Windows::UI::Color const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_TintColor(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_TintColor(impl::bind_in(value))); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< D>::TintOpacity() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_TintOpacity(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_TintOpacity(&value)); } return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< D>::TintOpacity(float value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_TintOpacity(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_TintOpacity(value)); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController2< D>::Kind() const { winrt::Microsoft::UI::Composition::SystemBackdrops::MicaKind value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController2, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_Kind(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_Kind(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController2::Kind( winrt::Microsoft::UI::Composition::SystemBackdrops::MicaKind const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController2, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Kind(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Kind(static_cast(value))); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController2< D>::ResetProperties() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController2, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ResetProperties()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ResetProperties()); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaControllerStatics< D>::IsSupported() const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->IsSupported(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->IsSupported(&result)); } return result; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< D>::HighContrastBackgroundColor() const { void* value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HighContrastBackgroundColor(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HighContrastBackgroundColor(&value)); } return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi}; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< D>:: HighContrastBackgroundColor( winrt::Windows::Foundation::IReference const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->put_HighContrastBackgroundColor(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->put_HighContrastBackgroundColor(*(void**)(&value))); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< D>::IsHighContrast() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsHighContrast(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsHighContrast(&value)); } return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< D>::IsHighContrast(bool value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_IsHighContrast(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_IsHighContrast(value)); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< D>::IsInputActive() const { bool value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsInputActive(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsInputActive(&value)); } return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< D>::IsInputActive(bool value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_IsInputActive(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_IsInputActive(value)); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< D>::Theme() const { winrt::Microsoft::UI::Composition::SystemBackdrops::SystemBackdropTheme value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_Theme(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_Theme(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< D>::Theme(winrt::Microsoft::UI::Composition::SystemBackdrops:: SystemBackdropTheme const& value) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropConfiguration, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Theme(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Theme(static_cast(value))); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropController< D>::SetTarget(winrt::Microsoft::UI::WindowId const& windowId, winrt::Windows::UI::Composition::CompositionTarget const& desktopWindowTarget) const { bool result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetTargetWithWindowId( impl::bind_in(windowId), *(void**)(&desktopWindowTarget), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetTargetWithWindowId( impl::bind_in(windowId), *(void**)(&desktopWindowTarget), &result)); } return result; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropController< D>::SetTarget(winrt::Windows::UI::Core::CoreWindow const& coreWindow, winrt::Windows::UI::Composition::CompositionTarget const& compositionTarget) const { bool result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropController>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetTargetWithCoreWindow( *(void**)(&coreWindow), *(void**)(&compositionTarget), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetTargetWithCoreWindow( *(void**)(&coreWindow), *(void**)(&compositionTarget), &result)); } return result; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< D>::State() const { winrt::Microsoft::UI::Composition::SystemBackdrops::SystemBackdropState value{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *( abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_State(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_State(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< D>::AddSystemBackdropTarget(winrt::Microsoft::UI::Composition:: ICompositionSupportsSystemBackdrop const& systemBackdropTarget) const { bool result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *( abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddSystemBackdropTarget( *(void**)(&systemBackdropTarget), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddSystemBackdropTarget( *(void**)(&systemBackdropTarget), &result)); } return result; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< D>::RemoveAllSystemBackdropTargets() const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *( abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->RemoveAllSystemBackdropTargets()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RemoveAllSystemBackdropTargets()); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< D>::RemoveSystemBackdropTarget(winrt::Microsoft::UI::Composition:: ICompositionSupportsSystemBackdrop const& systemBackdropTarget) const { bool result{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *( abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->RemoveSystemBackdropTarget( *(void**)(&systemBackdropTarget), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RemoveSystemBackdropTarget( *(void**)(&systemBackdropTarget), &result)); } return result; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< D>:: SetSystemBackdropConfiguration( winrt::Microsoft::UI::Composition::SystemBackdrops:: SystemBackdropConfiguration const& configuration) const { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *( abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetSystemBackdropConfiguration( *(void**)(&configuration))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetSystemBackdropConfiguration( *(void**)(&configuration))); } } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< D>:: StateChanged( winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets, winrt::Windows::Foundation::IInspectable> const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *( abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->add_StateChanged(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->add_StateChanged(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< D>::StateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets, winrt::Windows::Foundation::IInspectable> const& handler) const { return impl::make_event_revoker( this, StateChanged(handler)); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< D>::StateChanged(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v< D, winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets>) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::UI::Composition::SystemBackdrops:: ISystemBackdropControllerWithTargets, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *( abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_StateChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_StateChanged(impl::bind_in(token)); } } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FallbackColor( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FallbackColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FallbackColor( struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FallbackColor( *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LuminosityOpacity(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LuminosityOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LuminosityOpacity(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LuminosityOpacity(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TintColor( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TintColor( struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TintColor( *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TintOpacity(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TintOpacity(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TintOpacity(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ResetProperties() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ResetProperties(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Microsoft::UI::Composition::SystemBackdrops::DesktopAcrylicKind>( this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Kind(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Kind( *reinterpret_cast(&value)); 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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController> : produce_base< D, winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController> { int32_t __stdcall get_FallbackColor( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FallbackColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FallbackColor( struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FallbackColor( *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LuminosityOpacity(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LuminosityOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LuminosityOpacity(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LuminosityOpacity(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TintColor( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TintColor( struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TintColor( *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TintOpacity(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TintOpacity(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TintOpacity(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController2> : produce_base { int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Microsoft::UI::Composition::SystemBackdrops::MicaKind>( this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Kind(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Kind( *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResetProperties() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ResetProperties(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaControllerStatics> : 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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_HighContrastBackgroundColor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Windows::Foundation::IReference>( this->shim().HighContrastBackgroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HighContrastBackgroundColor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HighContrastBackgroundColor( *reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHighContrast(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHighContrast()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsHighContrast(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsHighContrast(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsInputActive(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsInputActive()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsInputActive(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsInputActive(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Theme(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Theme()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Theme(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Theme( *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall SetTargetWithWindowId( struct struct_Microsoft_UI_WindowId windowId, void* desktopWindowTarget, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetTarget( *reinterpret_cast(&windowId), *reinterpret_cast< winrt::Windows::UI::Composition::CompositionTarget const*>( &desktopWindowTarget))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetTargetWithCoreWindow(void* coreWindow, void* compositionTarget, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetTarget( *reinterpret_cast( &coreWindow), *reinterpret_cast< winrt::Windows::UI::Composition::CompositionTarget const*>( &compositionTarget))); return 0; } catch (...) { return to_hresult(); } }; 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 AddSystemBackdropTarget(void* systemBackdropTarget, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().AddSystemBackdropTarget( *reinterpret_cast( &systemBackdropTarget))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveAllSystemBackdropTargets() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveAllSystemBackdropTargets(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveSystemBackdropTarget(void* systemBackdropTarget, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RemoveSystemBackdropTarget( *reinterpret_cast( &systemBackdropTarget))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetSystemBackdropConfiguration( void* configuration) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetSystemBackdropConfiguration( *reinterpret_cast( &configuration)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_StateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().StateChanged( *reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_StateChanged( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().StateChanged( *reinterpret_cast(&token)); return 0; } }; } // namespace winrt::impl WINRT_EXPORT namespace winrt::Microsoft::UI::Composition::SystemBackdrops { inline DesktopAcrylicController::DesktopAcrylicController() : DesktopAcrylicController( impl::call_factory_cast< DesktopAcrylicController (*)( winrt::Windows::Foundation::IActivationFactory const&), DesktopAcrylicController>( [](winrt::Windows::Foundation::IActivationFactory const& f) { return f .template ActivateInstance(); })) {} inline auto DesktopAcrylicController::IsSupported() { return impl::call_factory_cast< bool (*)(IDesktopAcrylicControllerStatics const&), DesktopAcrylicController, IDesktopAcrylicControllerStatics>( [](IDesktopAcrylicControllerStatics const& f) { return f.IsSupported(); }); } inline MicaController::MicaController() : MicaController( impl::call_factory_cast< MicaController (*)( winrt::Windows::Foundation::IActivationFactory const&), MicaController>( [](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) {} inline auto MicaController::IsSupported() { return impl::call_factory_cast( [](IMicaControllerStatics const& f) { return f.IsSupported(); }); } inline SystemBackdropConfiguration::SystemBackdropConfiguration() : SystemBackdropConfiguration( impl::call_factory_cast< SystemBackdropConfiguration (*)( winrt::Windows::Foundation::IActivationFactory const&), SystemBackdropConfiguration>( [](winrt::Windows::Foundation::IActivationFactory const& f) { return f .template ActivateInstance(); })) {} } 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::Microsoft::UI::Composition::SystemBackdrops::IMicaController2> : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaControllerStatics> : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base { }; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } // namespace std #endif