// WARNING: Please don't edit this file. It was generated by C++/WinRT // v2.0.250303.1 #pragma once #ifndef WINRT_Microsoft_UI_H #define WINRT_Microsoft_UI_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/impl/Microsoft.UI.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.UI.2.h" namespace winrt::impl { template auto consume_Microsoft_UI_IClosableNotifier::IsClosed() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *( abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsClosed(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsClosed(&value)); } return value; } template auto consume_Microsoft_UI_IClosableNotifier::Closed( winrt::Microsoft::UI::ClosableNotifierHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_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_Closed(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_IClosableNotifier::Closed( auto_revoke_t, winrt::Microsoft::UI::ClosableNotifierHandler const& handler) const { return impl::make_event_revoker(this, Closed(handler)); } template auto consume_Microsoft_UI_IClosableNotifier::Closed( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(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_Closed(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Closed(impl::bind_in(token)); } } template auto consume_Microsoft_UI_IClosableNotifier::FrameworkClosed( winrt::Microsoft::UI::ClosableNotifierHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_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_FrameworkClosed(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_FrameworkClosed(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Microsoft_UI_IClosableNotifier::FrameworkClosed( auto_revoke_t, winrt::Microsoft::UI::ClosableNotifierHandler const& handler) const { return impl::make_event_revoker( this, FrameworkClosed(handler)); } template auto consume_Microsoft_UI_IClosableNotifier::FrameworkClosed( winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(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_FrameworkClosed(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_FrameworkClosed(impl::bind_in(token)); } } template auto consume_Microsoft_UI_IColorHelperStatics::FromArgb(uint8_t a, uint8_t r, uint8_t g, uint8_t b) const { winrt::Windows::UI::Color result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::IColorHelperStatics>**)&_winrt_casted_result; check_hresult(_winrt_abi_type->FromArgb(a, r, g, b, put_abi(result))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FromArgb(a, r, g, b, put_abi(result))); } return result; } template auto consume_Microsoft_UI_IColorHelperStatics2::ToDisplayName( winrt::Windows::UI::Color const& color) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::UI::IColorHelperStatics2>**)&_winrt_casted_result; check_hresult( _winrt_abi_type->ToDisplayName(impl::bind_in(color), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->ToDisplayName(impl::bind_in(color), &result)); } return hstring{result, take_ownership_from_abi}; } template auto consume_Microsoft_UI_IColorsStatics::AliceBlue() 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(static_cast(this), _winrt_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_AliceBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AliceBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::AntiqueWhite() 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(static_cast(this), _winrt_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_AntiqueWhite(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AntiqueWhite(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Aqua() 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(static_cast(this), _winrt_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_Aqua(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Aqua(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Aquamarine() 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(static_cast(this), _winrt_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_Aquamarine(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Aquamarine(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Azure() 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(static_cast(this), _winrt_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_Azure(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Azure(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Beige() 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(static_cast(this), _winrt_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_Beige(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Beige(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Bisque() 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(static_cast(this), _winrt_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_Bisque(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Bisque(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Black() 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(static_cast(this), _winrt_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_Black(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Black(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::BlanchedAlmond() 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(static_cast(this), _winrt_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_BlanchedAlmond(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_BlanchedAlmond(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Blue() 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(static_cast(this), _winrt_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_Blue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Blue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::BlueViolet() 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(static_cast(this), _winrt_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_BlueViolet(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_BlueViolet(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Brown() 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(static_cast(this), _winrt_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_Brown(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Brown(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::BurlyWood() 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(static_cast(this), _winrt_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_BurlyWood(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_BurlyWood(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::CadetBlue() 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(static_cast(this), _winrt_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_CadetBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CadetBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Chartreuse() 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(static_cast(this), _winrt_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_Chartreuse(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Chartreuse(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Chocolate() 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(static_cast(this), _winrt_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_Chocolate(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Chocolate(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Coral() 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(static_cast(this), _winrt_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_Coral(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Coral(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::CornflowerBlue() 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(static_cast(this), _winrt_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_CornflowerBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CornflowerBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Cornsilk() 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(static_cast(this), _winrt_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_Cornsilk(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Cornsilk(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Crimson() 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(static_cast(this), _winrt_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_Crimson(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Crimson(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Cyan() 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(static_cast(this), _winrt_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_Cyan(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Cyan(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkBlue() 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(static_cast(this), _winrt_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_DarkBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkCyan() 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(static_cast(this), _winrt_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_DarkCyan(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkCyan(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkGoldenrod() 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(static_cast(this), _winrt_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_DarkGoldenrod(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkGoldenrod(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkGray() 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(static_cast(this), _winrt_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_DarkGray(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkGray(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkGreen() 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(static_cast(this), _winrt_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_DarkGreen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkGreen(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkKhaki() 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(static_cast(this), _winrt_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_DarkKhaki(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkKhaki(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkMagenta() 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(static_cast(this), _winrt_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_DarkMagenta(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkMagenta(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkOliveGreen() 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(static_cast(this), _winrt_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_DarkOliveGreen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkOliveGreen(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkOrange() 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(static_cast(this), _winrt_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_DarkOrange(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkOrange(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkOrchid() 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(static_cast(this), _winrt_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_DarkOrchid(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkOrchid(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkRed() 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(static_cast(this), _winrt_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_DarkRed(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkRed(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkSalmon() 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(static_cast(this), _winrt_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_DarkSalmon(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkSalmon(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkSeaGreen() 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(static_cast(this), _winrt_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_DarkSeaGreen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkSeaGreen(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkSlateBlue() 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(static_cast(this), _winrt_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_DarkSlateBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkSlateBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkSlateGray() 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(static_cast(this), _winrt_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_DarkSlateGray(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkSlateGray(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkTurquoise() 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(static_cast(this), _winrt_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_DarkTurquoise(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkTurquoise(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DarkViolet() 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(static_cast(this), _winrt_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_DarkViolet(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DarkViolet(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DeepPink() 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(static_cast(this), _winrt_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_DeepPink(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DeepPink(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DeepSkyBlue() 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(static_cast(this), _winrt_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_DeepSkyBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DeepSkyBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DimGray() 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(static_cast(this), _winrt_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_DimGray(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DimGray(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::DodgerBlue() 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(static_cast(this), _winrt_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_DodgerBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DodgerBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Firebrick() 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(static_cast(this), _winrt_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_Firebrick(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Firebrick(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::FloralWhite() 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(static_cast(this), _winrt_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_FloralWhite(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FloralWhite(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::ForestGreen() 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(static_cast(this), _winrt_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_ForestGreen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ForestGreen(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Fuchsia() 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(static_cast(this), _winrt_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_Fuchsia(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Fuchsia(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Gainsboro() 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(static_cast(this), _winrt_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_Gainsboro(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Gainsboro(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::GhostWhite() 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(static_cast(this), _winrt_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_GhostWhite(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_GhostWhite(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Gold() 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(static_cast(this), _winrt_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_Gold(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Gold(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Goldenrod() 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(static_cast(this), _winrt_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_Goldenrod(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Goldenrod(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Gray() 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(static_cast(this), _winrt_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_Gray(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Gray(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Green() 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(static_cast(this), _winrt_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_Green(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Green(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::GreenYellow() 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(static_cast(this), _winrt_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_GreenYellow(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_GreenYellow(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Honeydew() 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(static_cast(this), _winrt_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_Honeydew(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Honeydew(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::HotPink() 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(static_cast(this), _winrt_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_HotPink(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HotPink(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::IndianRed() 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(static_cast(this), _winrt_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_IndianRed(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IndianRed(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Indigo() 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(static_cast(this), _winrt_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_Indigo(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Indigo(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Ivory() 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(static_cast(this), _winrt_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_Ivory(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Ivory(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Khaki() 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(static_cast(this), _winrt_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_Khaki(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Khaki(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Lavender() 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(static_cast(this), _winrt_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_Lavender(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Lavender(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LavenderBlush() 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(static_cast(this), _winrt_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_LavenderBlush(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LavenderBlush(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LawnGreen() 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(static_cast(this), _winrt_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_LawnGreen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LawnGreen(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LemonChiffon() 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(static_cast(this), _winrt_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_LemonChiffon(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LemonChiffon(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LightBlue() 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(static_cast(this), _winrt_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_LightBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LightCoral() 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(static_cast(this), _winrt_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_LightCoral(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightCoral(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LightCyan() 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(static_cast(this), _winrt_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_LightCyan(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightCyan(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LightGoldenrodYellow() 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(static_cast(this), _winrt_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_LightGoldenrodYellow(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightGoldenrodYellow(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LightGreen() 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(static_cast(this), _winrt_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_LightGreen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightGreen(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LightGray() 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(static_cast(this), _winrt_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_LightGray(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightGray(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LightPink() 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(static_cast(this), _winrt_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_LightPink(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightPink(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LightSalmon() 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(static_cast(this), _winrt_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_LightSalmon(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightSalmon(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LightSeaGreen() 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(static_cast(this), _winrt_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_LightSeaGreen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightSeaGreen(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LightSkyBlue() 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(static_cast(this), _winrt_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_LightSkyBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightSkyBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LightSlateGray() 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(static_cast(this), _winrt_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_LightSlateGray(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightSlateGray(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LightSteelBlue() 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(static_cast(this), _winrt_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_LightSteelBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightSteelBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LightYellow() 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(static_cast(this), _winrt_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_LightYellow(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightYellow(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Lime() 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(static_cast(this), _winrt_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_Lime(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Lime(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::LimeGreen() 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(static_cast(this), _winrt_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_LimeGreen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LimeGreen(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Linen() 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(static_cast(this), _winrt_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_Linen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Linen(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Magenta() 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(static_cast(this), _winrt_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_Magenta(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Magenta(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Maroon() 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(static_cast(this), _winrt_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_Maroon(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Maroon(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::MediumAquamarine() 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(static_cast(this), _winrt_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_MediumAquamarine(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MediumAquamarine(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::MediumBlue() 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(static_cast(this), _winrt_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_MediumBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MediumBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::MediumOrchid() 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(static_cast(this), _winrt_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_MediumOrchid(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MediumOrchid(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::MediumPurple() 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(static_cast(this), _winrt_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_MediumPurple(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MediumPurple(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::MediumSeaGreen() 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(static_cast(this), _winrt_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_MediumSeaGreen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MediumSeaGreen(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::MediumSlateBlue() 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(static_cast(this), _winrt_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_MediumSlateBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MediumSlateBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::MediumSpringGreen() 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(static_cast(this), _winrt_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_MediumSpringGreen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MediumSpringGreen(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::MediumTurquoise() 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(static_cast(this), _winrt_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_MediumTurquoise(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MediumTurquoise(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::MediumVioletRed() 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(static_cast(this), _winrt_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_MediumVioletRed(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MediumVioletRed(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::MidnightBlue() 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(static_cast(this), _winrt_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_MidnightBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MidnightBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::MintCream() 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(static_cast(this), _winrt_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_MintCream(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MintCream(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::MistyRose() 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(static_cast(this), _winrt_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_MistyRose(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MistyRose(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Moccasin() 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(static_cast(this), _winrt_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_Moccasin(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Moccasin(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::NavajoWhite() 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(static_cast(this), _winrt_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_NavajoWhite(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_NavajoWhite(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Navy() 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(static_cast(this), _winrt_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_Navy(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Navy(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::OldLace() 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(static_cast(this), _winrt_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_OldLace(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OldLace(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Olive() 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(static_cast(this), _winrt_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_Olive(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Olive(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::OliveDrab() 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(static_cast(this), _winrt_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_OliveDrab(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OliveDrab(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Orange() 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(static_cast(this), _winrt_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_Orange(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Orange(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::OrangeRed() 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(static_cast(this), _winrt_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_OrangeRed(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OrangeRed(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Orchid() 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(static_cast(this), _winrt_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_Orchid(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Orchid(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::PaleGoldenrod() 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(static_cast(this), _winrt_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_PaleGoldenrod(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PaleGoldenrod(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::PaleGreen() 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(static_cast(this), _winrt_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_PaleGreen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PaleGreen(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::PaleTurquoise() 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(static_cast(this), _winrt_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_PaleTurquoise(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PaleTurquoise(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::PaleVioletRed() 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(static_cast(this), _winrt_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_PaleVioletRed(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PaleVioletRed(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::PapayaWhip() 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(static_cast(this), _winrt_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_PapayaWhip(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PapayaWhip(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::PeachPuff() 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(static_cast(this), _winrt_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_PeachPuff(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PeachPuff(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Peru() 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(static_cast(this), _winrt_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_Peru(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Peru(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Pink() 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(static_cast(this), _winrt_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_Pink(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Pink(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Plum() 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(static_cast(this), _winrt_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_Plum(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Plum(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::PowderBlue() 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(static_cast(this), _winrt_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_PowderBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PowderBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Purple() 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(static_cast(this), _winrt_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_Purple(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Purple(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Red() 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(static_cast(this), _winrt_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_Red(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Red(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::RosyBrown() 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(static_cast(this), _winrt_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_RosyBrown(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RosyBrown(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::RoyalBlue() 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(static_cast(this), _winrt_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_RoyalBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RoyalBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::SaddleBrown() 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(static_cast(this), _winrt_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_SaddleBrown(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SaddleBrown(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Salmon() 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(static_cast(this), _winrt_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_Salmon(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Salmon(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::SandyBrown() 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(static_cast(this), _winrt_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_SandyBrown(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SandyBrown(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::SeaGreen() 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(static_cast(this), _winrt_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_SeaGreen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SeaGreen(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::SeaShell() 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(static_cast(this), _winrt_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_SeaShell(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SeaShell(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Sienna() 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(static_cast(this), _winrt_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_Sienna(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Sienna(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Silver() 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(static_cast(this), _winrt_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_Silver(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Silver(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::SkyBlue() 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(static_cast(this), _winrt_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_SkyBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SkyBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::SlateBlue() 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(static_cast(this), _winrt_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_SlateBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SlateBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::SlateGray() 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(static_cast(this), _winrt_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_SlateGray(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SlateGray(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Snow() 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(static_cast(this), _winrt_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_Snow(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Snow(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::SpringGreen() 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(static_cast(this), _winrt_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_SpringGreen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SpringGreen(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::SteelBlue() 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(static_cast(this), _winrt_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_SteelBlue(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SteelBlue(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Tan() 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(static_cast(this), _winrt_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_Tan(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Tan(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Teal() 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(static_cast(this), _winrt_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_Teal(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Teal(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Thistle() 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(static_cast(this), _winrt_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_Thistle(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Thistle(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Tomato() 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(static_cast(this), _winrt_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_Tomato(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Tomato(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Transparent() 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(static_cast(this), _winrt_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_Transparent(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Transparent(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Turquoise() 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(static_cast(this), _winrt_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_Turquoise(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Turquoise(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Violet() 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(static_cast(this), _winrt_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_Violet(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Violet(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Wheat() 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(static_cast(this), _winrt_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_Wheat(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Wheat(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::White() 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(static_cast(this), _winrt_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_White(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_White(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::WhiteSmoke() 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(static_cast(this), _winrt_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_WhiteSmoke(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WhiteSmoke(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::Yellow() 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(static_cast(this), _winrt_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_Yellow(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Yellow(put_abi(value))); } return value; } template auto consume_Microsoft_UI_IColorsStatics::YellowGreen() 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(static_cast(this), _winrt_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_YellowGreen(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_YellowGreen(put_abi(value))); } return value; } template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate( std::forward(handler)) {} int32_t __stdcall Invoke() noexcept final try { (*this)(); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_IsClosed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsClosed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Closed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Closed( *reinterpret_cast( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Closed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Closed(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_FrameworkClosed( void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().FrameworkClosed( *reinterpret_cast( &handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_FrameworkClosed( winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().FrameworkClosed( *reinterpret_cast(&token)); return 0; } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base {}; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FromArgb( uint8_t a, uint8_t r, uint8_t g, uint8_t b, struct struct_Windows_UI_Color* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().FromArgb(a, r, g, b)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ToDisplayName(struct struct_Windows_UI_Color color, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ToDisplayName( *reinterpret_cast(&color))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base {}; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AliceBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AliceBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AntiqueWhite( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AntiqueWhite()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Aqua( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Aqua()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Aquamarine( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Aquamarine()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Azure( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Azure()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Beige( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Beige()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Bisque( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Bisque()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Black( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Black()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BlanchedAlmond( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BlanchedAlmond()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Blue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Blue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BlueViolet( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BlueViolet()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Brown( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Brown()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BurlyWood( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BurlyWood()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CadetBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CadetBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Chartreuse( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Chartreuse()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Chocolate( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Chocolate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Coral( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Coral()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CornflowerBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CornflowerBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Cornsilk( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Cornsilk()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Crimson( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Crimson()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Cyan( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Cyan()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkCyan( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkCyan()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkGoldenrod( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkGoldenrod()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkGray( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkGray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkGreen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkGreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkKhaki( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkKhaki()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkMagenta( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkMagenta()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkOliveGreen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkOliveGreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkOrange( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkOrange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkOrchid( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkOrchid()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkRed( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkRed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkSalmon( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkSalmon()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkSeaGreen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkSeaGreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkSlateBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkSlateBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkSlateGray( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkSlateGray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkTurquoise( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkTurquoise()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DarkViolet( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DarkViolet()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeepPink( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeepPink()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeepSkyBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeepSkyBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DimGray( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DimGray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DodgerBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DodgerBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Firebrick( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Firebrick()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FloralWhite( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FloralWhite()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ForestGreen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ForestGreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Fuchsia( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Fuchsia()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Gainsboro( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Gainsboro()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GhostWhite( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GhostWhite()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Gold( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Gold()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Goldenrod( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Goldenrod()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Gray( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Gray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Green( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Green()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GreenYellow( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GreenYellow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Honeydew( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Honeydew()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HotPink( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HotPink()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IndianRed( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IndianRed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Indigo( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Indigo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Ivory( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Ivory()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Khaki( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Khaki()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Lavender( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Lavender()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LavenderBlush( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LavenderBlush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LawnGreen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LawnGreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LemonChiffon( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LemonChiffon()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LightBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LightCoral( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightCoral()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LightCyan( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightCyan()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LightGoldenrodYellow( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().LightGoldenrodYellow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LightGreen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightGreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LightGray( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightGray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LightPink( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightPink()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LightSalmon( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightSalmon()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LightSeaGreen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightSeaGreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LightSkyBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightSkyBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LightSlateGray( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightSlateGray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LightSteelBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightSteelBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LightYellow( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightYellow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Lime( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Lime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LimeGreen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LimeGreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Linen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Linen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Magenta( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Magenta()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Maroon( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Maroon()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MediumAquamarine( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MediumAquamarine()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MediumBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MediumBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MediumOrchid( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MediumOrchid()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MediumPurple( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MediumPurple()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MediumSeaGreen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MediumSeaGreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MediumSlateBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MediumSlateBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MediumSpringGreen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().MediumSpringGreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MediumTurquoise( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MediumTurquoise()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MediumVioletRed( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MediumVioletRed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MidnightBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MidnightBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MintCream( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MintCream()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MistyRose( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MistyRose()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Moccasin( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Moccasin()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NavajoWhite( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NavajoWhite()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Navy( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Navy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OldLace( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OldLace()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Olive( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Olive()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OliveDrab( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OliveDrab()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Orange( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Orange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OrangeRed( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OrangeRed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Orchid( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Orchid()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PaleGoldenrod( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PaleGoldenrod()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PaleGreen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PaleGreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PaleTurquoise( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PaleTurquoise()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PaleVioletRed( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PaleVioletRed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PapayaWhip( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PapayaWhip()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PeachPuff( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PeachPuff()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Peru( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Peru()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Pink( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Pink()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Plum( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Plum()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PowderBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PowderBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Purple( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Purple()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Red( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Red()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RosyBrown( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RosyBrown()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RoyalBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RoyalBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SaddleBrown( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SaddleBrown()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Salmon( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Salmon()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SandyBrown( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SandyBrown()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SeaGreen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SeaGreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SeaShell( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SeaShell()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Sienna( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Sienna()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Silver( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Silver()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SkyBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SkyBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SlateBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SlateBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SlateGray( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SlateGray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Snow( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Snow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SpringGreen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SpringGreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SteelBlue( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SteelBlue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Tan( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tan()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Teal( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Teal()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Thistle( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Thistle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Tomato( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tomato()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Transparent( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Transparent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Turquoise( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Turquoise()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Violet( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Violet()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Wheat( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Wheat()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_White( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().White()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WhiteSmoke( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WhiteSmoke()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Yellow( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Yellow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_YellowGreen( struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().YellowGreen()); return 0; } catch (...) { return to_hresult(); } }; #endif } // namespace winrt::impl WINRT_EXPORT namespace winrt::Microsoft::UI { inline auto ColorHelper::FromArgb(uint8_t a, uint8_t r, uint8_t g, uint8_t b) { return impl::call_factory( [&](IColorHelperStatics const& f) { return f.FromArgb(a, r, g, b); }); } inline auto ColorHelper::ToDisplayName( winrt::Windows::UI::Color const& color) { return impl::call_factory( [&](IColorHelperStatics2 const& f) { return f.ToDisplayName(color); }); } inline auto Colors::AliceBlue() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.AliceBlue(); }); } inline auto Colors::AntiqueWhite() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.AntiqueWhite(); }); } inline auto Colors::Aqua() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Aqua(); }); } inline auto Colors::Aquamarine() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Aquamarine(); }); } inline auto Colors::Azure() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Azure(); }); } inline auto Colors::Beige() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Beige(); }); } inline auto Colors::Bisque() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Bisque(); }); } inline auto Colors::Black() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Black(); }); } inline auto Colors::BlanchedAlmond() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.BlanchedAlmond(); }); } inline auto Colors::Blue() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Blue(); }); } inline auto Colors::BlueViolet() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.BlueViolet(); }); } inline auto Colors::Brown() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Brown(); }); } inline auto Colors::BurlyWood() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.BurlyWood(); }); } inline auto Colors::CadetBlue() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.CadetBlue(); }); } inline auto Colors::Chartreuse() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Chartreuse(); }); } inline auto Colors::Chocolate() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Chocolate(); }); } inline auto Colors::Coral() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Coral(); }); } inline auto Colors::CornflowerBlue() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.CornflowerBlue(); }); } inline auto Colors::Cornsilk() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Cornsilk(); }); } inline auto Colors::Crimson() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Crimson(); }); } inline auto Colors::Cyan() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Cyan(); }); } inline auto Colors::DarkBlue() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.DarkBlue(); }); } inline auto Colors::DarkCyan() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.DarkCyan(); }); } inline auto Colors::DarkGoldenrod() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.DarkGoldenrod(); }); } inline auto Colors::DarkGray() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.DarkGray(); }); } inline auto Colors::DarkGreen() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.DarkGreen(); }); } inline auto Colors::DarkKhaki() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.DarkKhaki(); }); } inline auto Colors::DarkMagenta() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.DarkMagenta(); }); } inline auto Colors::DarkOliveGreen() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.DarkOliveGreen(); }); } inline auto Colors::DarkOrange() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.DarkOrange(); }); } inline auto Colors::DarkOrchid() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.DarkOrchid(); }); } inline auto Colors::DarkRed() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.DarkRed(); }); } inline auto Colors::DarkSalmon() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.DarkSalmon(); }); } inline auto Colors::DarkSeaGreen() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.DarkSeaGreen(); }); } inline auto Colors::DarkSlateBlue() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.DarkSlateBlue(); }); } inline auto Colors::DarkSlateGray() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.DarkSlateGray(); }); } inline auto Colors::DarkTurquoise() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.DarkTurquoise(); }); } inline auto Colors::DarkViolet() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.DarkViolet(); }); } inline auto Colors::DeepPink() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.DeepPink(); }); } inline auto Colors::DeepSkyBlue() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.DeepSkyBlue(); }); } inline auto Colors::DimGray() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.DimGray(); }); } inline auto Colors::DodgerBlue() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.DodgerBlue(); }); } inline auto Colors::Firebrick() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Firebrick(); }); } inline auto Colors::FloralWhite() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.FloralWhite(); }); } inline auto Colors::ForestGreen() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.ForestGreen(); }); } inline auto Colors::Fuchsia() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Fuchsia(); }); } inline auto Colors::Gainsboro() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Gainsboro(); }); } inline auto Colors::GhostWhite() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.GhostWhite(); }); } inline auto Colors::Gold() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Gold(); }); } inline auto Colors::Goldenrod() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Goldenrod(); }); } inline auto Colors::Gray() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Gray(); }); } inline auto Colors::Green() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Green(); }); } inline auto Colors::GreenYellow() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.GreenYellow(); }); } inline auto Colors::Honeydew() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Honeydew(); }); } inline auto Colors::HotPink() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.HotPink(); }); } inline auto Colors::IndianRed() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.IndianRed(); }); } inline auto Colors::Indigo() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Indigo(); }); } inline auto Colors::Ivory() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Ivory(); }); } inline auto Colors::Khaki() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Khaki(); }); } inline auto Colors::Lavender() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Lavender(); }); } inline auto Colors::LavenderBlush() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.LavenderBlush(); }); } inline auto Colors::LawnGreen() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.LawnGreen(); }); } inline auto Colors::LemonChiffon() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.LemonChiffon(); }); } inline auto Colors::LightBlue() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.LightBlue(); }); } inline auto Colors::LightCoral() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.LightCoral(); }); } inline auto Colors::LightCyan() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.LightCyan(); }); } inline auto Colors::LightGoldenrodYellow() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.LightGoldenrodYellow(); }); } inline auto Colors::LightGreen() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.LightGreen(); }); } inline auto Colors::LightGray() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.LightGray(); }); } inline auto Colors::LightPink() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.LightPink(); }); } inline auto Colors::LightSalmon() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.LightSalmon(); }); } inline auto Colors::LightSeaGreen() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.LightSeaGreen(); }); } inline auto Colors::LightSkyBlue() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.LightSkyBlue(); }); } inline auto Colors::LightSlateGray() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.LightSlateGray(); }); } inline auto Colors::LightSteelBlue() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.LightSteelBlue(); }); } inline auto Colors::LightYellow() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.LightYellow(); }); } inline auto Colors::Lime() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Lime(); }); } inline auto Colors::LimeGreen() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.LimeGreen(); }); } inline auto Colors::Linen() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Linen(); }); } inline auto Colors::Magenta() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Magenta(); }); } inline auto Colors::Maroon() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Maroon(); }); } inline auto Colors::MediumAquamarine() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.MediumAquamarine(); }); } inline auto Colors::MediumBlue() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.MediumBlue(); }); } inline auto Colors::MediumOrchid() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.MediumOrchid(); }); } inline auto Colors::MediumPurple() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.MediumPurple(); }); } inline auto Colors::MediumSeaGreen() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.MediumSeaGreen(); }); } inline auto Colors::MediumSlateBlue() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.MediumSlateBlue(); }); } inline auto Colors::MediumSpringGreen() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.MediumSpringGreen(); }); } inline auto Colors::MediumTurquoise() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.MediumTurquoise(); }); } inline auto Colors::MediumVioletRed() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.MediumVioletRed(); }); } inline auto Colors::MidnightBlue() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.MidnightBlue(); }); } inline auto Colors::MintCream() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.MintCream(); }); } inline auto Colors::MistyRose() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.MistyRose(); }); } inline auto Colors::Moccasin() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Moccasin(); }); } inline auto Colors::NavajoWhite() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.NavajoWhite(); }); } inline auto Colors::Navy() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Navy(); }); } inline auto Colors::OldLace() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.OldLace(); }); } inline auto Colors::Olive() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Olive(); }); } inline auto Colors::OliveDrab() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.OliveDrab(); }); } inline auto Colors::Orange() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Orange(); }); } inline auto Colors::OrangeRed() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.OrangeRed(); }); } inline auto Colors::Orchid() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Orchid(); }); } inline auto Colors::PaleGoldenrod() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.PaleGoldenrod(); }); } inline auto Colors::PaleGreen() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.PaleGreen(); }); } inline auto Colors::PaleTurquoise() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.PaleTurquoise(); }); } inline auto Colors::PaleVioletRed() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.PaleVioletRed(); }); } inline auto Colors::PapayaWhip() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.PapayaWhip(); }); } inline auto Colors::PeachPuff() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.PeachPuff(); }); } inline auto Colors::Peru() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Peru(); }); } inline auto Colors::Pink() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Pink(); }); } inline auto Colors::Plum() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Plum(); }); } inline auto Colors::PowderBlue() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.PowderBlue(); }); } inline auto Colors::Purple() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Purple(); }); } inline auto Colors::Red() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Red(); }); } inline auto Colors::RosyBrown() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.RosyBrown(); }); } inline auto Colors::RoyalBlue() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.RoyalBlue(); }); } inline auto Colors::SaddleBrown() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.SaddleBrown(); }); } inline auto Colors::Salmon() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Salmon(); }); } inline auto Colors::SandyBrown() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.SandyBrown(); }); } inline auto Colors::SeaGreen() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.SeaGreen(); }); } inline auto Colors::SeaShell() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.SeaShell(); }); } inline auto Colors::Sienna() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Sienna(); }); } inline auto Colors::Silver() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Silver(); }); } inline auto Colors::SkyBlue() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.SkyBlue(); }); } inline auto Colors::SlateBlue() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.SlateBlue(); }); } inline auto Colors::SlateGray() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.SlateGray(); }); } inline auto Colors::Snow() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Snow(); }); } inline auto Colors::SpringGreen() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.SpringGreen(); }); } inline auto Colors::SteelBlue() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.SteelBlue(); }); } inline auto Colors::Tan() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Tan(); }); } inline auto Colors::Teal() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Teal(); }); } inline auto Colors::Thistle() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Thistle(); }); } inline auto Colors::Tomato() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Tomato(); }); } inline auto Colors::Transparent() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.Transparent(); }); } inline auto Colors::Turquoise() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Turquoise(); }); } inline auto Colors::Violet() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Violet(); }); } inline auto Colors::Wheat() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Wheat(); }); } inline auto Colors::White() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.White(); }); } inline auto Colors::WhiteSmoke() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.WhiteSmoke(); }); } inline auto Colors::Yellow() { return impl::call_factory_cast< winrt::Windows::UI::Color (*)(IColorsStatics const&), Colors, IColorsStatics>([](IColorsStatics const& f) { return f.Yellow(); }); } inline auto Colors::YellowGreen() { return impl::call_factory_cast( [](IColorsStatics const& f) { return f.YellowGreen(); }); } template ClosableNotifierHandler::ClosableNotifierHandler(L handler) : ClosableNotifierHandler(impl::make_delegate( std::forward(handler))) {} template ClosableNotifierHandler::ClosableNotifierHandler(F * handler) : ClosableNotifierHandler( [=](auto&&... args) { return handler(args...); }) {} template ClosableNotifierHandler::ClosableNotifierHandler(O * object, M method) : ClosableNotifierHandler( [=](auto&&... args) { return ((*object).*(method))(args...); }) {} template ClosableNotifierHandler::ClosableNotifierHandler(com_ptr && object, M method) : ClosableNotifierHandler( [o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) {} template ClosableNotifierHandler::ClosableNotifierHandler(weak_ref && object, LM && lambda_or_method) : ClosableNotifierHandler( [o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) {} template ClosableNotifierHandler::ClosableNotifierHandler(std::shared_ptr && object, M method) : ClosableNotifierHandler( [o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) {} template ClosableNotifierHandler::ClosableNotifierHandler(std::weak_ptr && object, LM && lambda_or_method) : ClosableNotifierHandler( [o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) {} inline auto ClosableNotifierHandler::operator()() const { check_hresult((*(impl::abi_t**)this)->Invoke()); } } 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 {}; #endif #ifdef __cpp_lib_format #endif } // namespace std #endif