// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Microsoft_UI_Xaml_Media_H #define WINRT_Microsoft_UI_Xaml_Media_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.UI.Composition.2.h" #include "winrt/impl/Windows.UI.Xaml.2.h" #include "winrt/impl/Windows.UI.Xaml.Media.2.h" #include "winrt/impl/Microsoft.UI.Xaml.Media.2.h" namespace winrt::impl { template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::BackgroundSource() const { winrt::Microsoft::UI::Xaml::Media::AcrylicBackgroundSource value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush)->get_BackgroundSource(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::BackgroundSource(winrt::Microsoft::UI::Xaml::Media::AcrylicBackgroundSource const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush)->put_BackgroundSource(static_cast(value))); } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::TintColor() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush)->get_TintColor(put_abi(value))); return value; } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::TintColor(winrt::Windows::UI::Color const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush)->put_TintColor(impl::bind_in(value))); } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::TintOpacity() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush)->get_TintOpacity(&value)); return value; } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::TintOpacity(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush)->put_TintOpacity(value)); } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::TintTransitionDuration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush)->get_TintTransitionDuration(put_abi(value))); return value; } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::TintTransitionDuration(winrt::Windows::Foundation::TimeSpan const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush)->put_TintTransitionDuration(impl::bind_in(value))); } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::AlwaysUseFallback() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush)->get_AlwaysUseFallback(&value)); return value; } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::AlwaysUseFallback(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush)->put_AlwaysUseFallback(value)); } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush2::TintLuminosityOpacity() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush2)->get_TintLuminosityOpacity(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush2::TintLuminosityOpacity(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush2)->put_TintLuminosityOpacity(*(void**)(&value))); } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrushFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Microsoft::UI::Xaml::Media::AcrylicBrush{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrushStatics::BackgroundSourceProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics)->get_BackgroundSourceProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrushStatics::TintColorProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics)->get_TintColorProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrushStatics::TintOpacityProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics)->get_TintOpacityProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrushStatics::TintTransitionDurationProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics)->get_TintTransitionDurationProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrushStatics::AlwaysUseFallbackProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics)->get_AlwaysUseFallbackProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrushStatics2::TintLuminosityOpacityProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics2)->get_TintLuminosityOpacityProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::Center() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->get_Center(put_abi(value))); return value; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::Center(winrt::Windows::Foundation::Point const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->put_Center(impl::bind_in(value))); } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::RadiusX() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->get_RadiusX(&value)); return value; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::RadiusX(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->put_RadiusX(value)); } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::RadiusY() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->get_RadiusY(&value)); return value; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::RadiusY(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->put_RadiusY(value)); } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::GradientOrigin() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->get_GradientOrigin(put_abi(value))); return value; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::GradientOrigin(winrt::Windows::Foundation::Point const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->put_GradientOrigin(impl::bind_in(value))); } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::MappingMode() const { winrt::Windows::UI::Xaml::Media::BrushMappingMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->get_MappingMode(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::MappingMode(winrt::Windows::UI::Xaml::Media::BrushMappingMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->put_MappingMode(static_cast(value))); } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::InterpolationSpace() const { winrt::Windows::UI::Composition::CompositionColorSpace value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->get_InterpolationSpace(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::InterpolationSpace(winrt::Windows::UI::Composition::CompositionColorSpace const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->put_InterpolationSpace(static_cast(value))); } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::SpreadMethod() const { winrt::Windows::UI::Xaml::Media::GradientSpreadMethod value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->get_SpreadMethod(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::SpreadMethod(winrt::Windows::UI::Xaml::Media::GradientSpreadMethod const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->put_SpreadMethod(static_cast(value))); } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::GradientStops() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush)->get_GradientStops(&value)); return winrt::Windows::Foundation::Collections::IObservableVector{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Microsoft::UI::Xaml::Media::RadialGradientBrush{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushStatics::CenterProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics)->get_CenterProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushStatics::RadiusXProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics)->get_RadiusXProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushStatics::RadiusYProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics)->get_RadiusYProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushStatics::GradientOriginProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics)->get_GradientOriginProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushStatics::InterpolationSpaceProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics)->get_InterpolationSpaceProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushStatics::MappingModeProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics)->get_MappingModeProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushStatics::SpreadMethodProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics)->get_SpreadMethodProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRevealBackgroundBrushFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBackgroundBrushFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Microsoft::UI::Xaml::Media::RevealBackgroundBrush{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRevealBorderBrushFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBorderBrushFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Microsoft::UI::Xaml::Media::RevealBorderBrush{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRevealBrush::Color() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBrush)->get_Color(put_abi(value))); return value; } template auto consume_Microsoft_UI_Xaml_Media_IRevealBrush::Color(winrt::Windows::UI::Color const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBrush)->put_Color(impl::bind_in(value))); } template auto consume_Microsoft_UI_Xaml_Media_IRevealBrush::TargetTheme() const { winrt::Windows::UI::Xaml::ApplicationTheme value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBrush)->get_TargetTheme(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Xaml_Media_IRevealBrush::TargetTheme(winrt::Windows::UI::Xaml::ApplicationTheme const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBrush)->put_TargetTheme(static_cast(value))); } template auto consume_Microsoft_UI_Xaml_Media_IRevealBrush::AlwaysUseFallback() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBrush)->get_AlwaysUseFallback(&value)); return value; } template auto consume_Microsoft_UI_Xaml_Media_IRevealBrush::AlwaysUseFallback(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBrush)->put_AlwaysUseFallback(value)); } template auto consume_Microsoft_UI_Xaml_Media_IRevealBrushProtectedFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBrushProtectedFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Microsoft::UI::Xaml::Media::RevealBrush{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRevealBrushStatics::ColorProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBrushStatics)->get_ColorProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRevealBrushStatics::TargetThemeProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBrushStatics)->get_TargetThemeProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRevealBrushStatics::AlwaysUseFallbackProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBrushStatics)->get_AlwaysUseFallbackProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRevealBrushStatics::StateProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBrushStatics)->get_StateProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Xaml_Media_IRevealBrushStatics::SetState(winrt::Windows::UI::Xaml::UIElement const& element, winrt::Microsoft::UI::Xaml::Media::RevealBrushState const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBrushStatics)->SetState(*(void**)(&element), static_cast(value))); } template auto consume_Microsoft_UI_Xaml_Media_IRevealBrushStatics::GetState(winrt::Windows::UI::Xaml::UIElement const& element) const { winrt::Microsoft::UI::Xaml::Media::RevealBrushState result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Xaml::Media::IRevealBrushStatics)->GetState(*(void**)(&element), reinterpret_cast(&result))); return result; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_BackgroundSource(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BackgroundSource()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BackgroundSource(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BackgroundSource(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TintColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TintColor(struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TintColor(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TintOpacity(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TintOpacity(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TintOpacity(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TintTransitionDuration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintTransitionDuration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TintTransitionDuration(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TintTransitionDuration(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AlwaysUseFallback(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AlwaysUseFallback()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AlwaysUseFallback(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AlwaysUseFallback(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_TintLuminosityOpacity(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().TintLuminosityOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TintLuminosityOpacity(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TintLuminosityOpacity(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_BackgroundSourceProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BackgroundSourceProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TintColorProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintColorProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TintOpacityProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintOpacityProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TintTransitionDurationProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintTransitionDurationProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AlwaysUseFallbackProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AlwaysUseFallbackProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_TintLuminosityOpacityProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintLuminosityOpacityProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Center(winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Center()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Center(winrt::Windows::Foundation::Point value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Center(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RadiusX(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RadiusX()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RadiusX(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RadiusX(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RadiusY(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RadiusY()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RadiusY(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RadiusY(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GradientOrigin(winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GradientOrigin()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_GradientOrigin(winrt::Windows::Foundation::Point value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().GradientOrigin(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MappingMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MappingMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MappingMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MappingMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InterpolationSpace(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InterpolationSpace()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InterpolationSpace(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InterpolationSpace(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SpreadMethod(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SpreadMethod()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SpreadMethod(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SpreadMethod(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GradientStops(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().GradientStops()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CenterProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CenterProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RadiusXProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RadiusXProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RadiusYProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RadiusYProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GradientOriginProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GradientOriginProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InterpolationSpaceProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InterpolationSpaceProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MappingModeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MappingModeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SpreadMethodProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SpreadMethodProperty()); 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 CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); 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 CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Color(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Color()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Color(struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Color(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TargetTheme(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TargetTheme()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TargetTheme(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TargetTheme(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AlwaysUseFallback(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AlwaysUseFallback()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AlwaysUseFallback(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AlwaysUseFallback(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ColorProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ColorProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TargetThemeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TargetThemeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AlwaysUseFallbackProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AlwaysUseFallbackProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StateProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StateProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetState(void* element, int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetState(*reinterpret_cast(&element), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetState(void* element, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetState(*reinterpret_cast(&element))); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Media { inline AcrylicBrush::AcrylicBrush() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IAcrylicBrushFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto AcrylicBrush::BackgroundSourceProperty() { return impl::call_factory_cast([](IAcrylicBrushStatics const& f) { return f.BackgroundSourceProperty(); }); } inline auto AcrylicBrush::TintColorProperty() { return impl::call_factory_cast([](IAcrylicBrushStatics const& f) { return f.TintColorProperty(); }); } inline auto AcrylicBrush::TintOpacityProperty() { return impl::call_factory_cast([](IAcrylicBrushStatics const& f) { return f.TintOpacityProperty(); }); } inline auto AcrylicBrush::TintTransitionDurationProperty() { return impl::call_factory_cast([](IAcrylicBrushStatics const& f) { return f.TintTransitionDurationProperty(); }); } inline auto AcrylicBrush::AlwaysUseFallbackProperty() { return impl::call_factory_cast([](IAcrylicBrushStatics const& f) { return f.AlwaysUseFallbackProperty(); }); } inline auto AcrylicBrush::TintLuminosityOpacityProperty() { return impl::call_factory_cast([](IAcrylicBrushStatics2 const& f) { return f.TintLuminosityOpacityProperty(); }); } inline RadialGradientBrush::RadialGradientBrush() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IRadialGradientBrushFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto RadialGradientBrush::CenterProperty() { return impl::call_factory_cast([](IRadialGradientBrushStatics const& f) { return f.CenterProperty(); }); } inline auto RadialGradientBrush::RadiusXProperty() { return impl::call_factory_cast([](IRadialGradientBrushStatics const& f) { return f.RadiusXProperty(); }); } inline auto RadialGradientBrush::RadiusYProperty() { return impl::call_factory_cast([](IRadialGradientBrushStatics const& f) { return f.RadiusYProperty(); }); } inline auto RadialGradientBrush::GradientOriginProperty() { return impl::call_factory_cast([](IRadialGradientBrushStatics const& f) { return f.GradientOriginProperty(); }); } inline auto RadialGradientBrush::InterpolationSpaceProperty() { return impl::call_factory_cast([](IRadialGradientBrushStatics const& f) { return f.InterpolationSpaceProperty(); }); } inline auto RadialGradientBrush::MappingModeProperty() { return impl::call_factory_cast([](IRadialGradientBrushStatics const& f) { return f.MappingModeProperty(); }); } inline auto RadialGradientBrush::SpreadMethodProperty() { return impl::call_factory_cast([](IRadialGradientBrushStatics const& f) { return f.SpreadMethodProperty(); }); } inline RevealBackgroundBrush::RevealBackgroundBrush() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IRevealBackgroundBrushFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline RevealBorderBrush::RevealBorderBrush() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IRevealBorderBrushFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto RevealBrush::ColorProperty() { return impl::call_factory_cast([](IRevealBrushStatics const& f) { return f.ColorProperty(); }); } inline auto RevealBrush::TargetThemeProperty() { return impl::call_factory_cast([](IRevealBrushStatics const& f) { return f.TargetThemeProperty(); }); } inline auto RevealBrush::AlwaysUseFallbackProperty() { return impl::call_factory_cast([](IRevealBrushStatics const& f) { return f.AlwaysUseFallbackProperty(); }); } inline auto RevealBrush::StateProperty() { return impl::call_factory_cast([](IRevealBrushStatics const& f) { return f.StateProperty(); }); } inline auto RevealBrush::SetState(winrt::Windows::UI::Xaml::UIElement const& element, winrt::Microsoft::UI::Xaml::Media::RevealBrushState const& value) { impl::call_factory([&](IRevealBrushStatics const& f) { return f.SetState(element, value); }); } inline auto RevealBrush::GetState(winrt::Windows::UI::Xaml::UIElement const& element) { return impl::call_factory([&](IRevealBrushStatics const& f) { return f.GetState(element); }); } template struct AcrylicBrushT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Media::IXamlCompositionBrushBaseOverridesT, winrt::Windows::UI::Xaml::Media::IBrushOverrides2T { using composable = AcrylicBrush; friend impl::consume_t; friend impl::require_one; protected: AcrylicBrushT() { impl::call_factory([&](IAcrylicBrushFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct RadialGradientBrushT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Media::IXamlCompositionBrushBaseOverridesT, winrt::Windows::UI::Xaml::Media::IBrushOverrides2T { using composable = RadialGradientBrush; friend impl::consume_t; friend impl::require_one; protected: RadialGradientBrushT() { impl::call_factory([&](IRadialGradientBrushFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct RevealBackgroundBrushT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Media::IXamlCompositionBrushBaseOverridesT, winrt::Windows::UI::Xaml::Media::IBrushOverrides2T { using composable = RevealBackgroundBrush; friend impl::consume_t; friend impl::require_one; protected: RevealBackgroundBrushT() { impl::call_factory([&](IRevealBackgroundBrushFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct RevealBorderBrushT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Media::IXamlCompositionBrushBaseOverridesT, winrt::Windows::UI::Xaml::Media::IBrushOverrides2T { using composable = RevealBorderBrush; friend impl::consume_t; friend impl::require_one; protected: RevealBorderBrushT() { impl::call_factory([&](IRevealBorderBrushFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct RevealBrushT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Media::IXamlCompositionBrushBaseOverridesT, winrt::Windows::UI::Xaml::Media::IBrushOverrides2T { using composable = RevealBrush; friend impl::consume_t; friend impl::require_one; protected: RevealBrushT() { impl::call_factory([&](IRevealBrushProtectedFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif