// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Media_ClosedCaptioning_H #define WINRT_Windows_Media_ClosedCaptioning_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.Media.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.Media.ClosedCaptioning.2.h" namespace winrt::impl { template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics::FontColor() const { winrt::Windows::Media::ClosedCaptioning::ClosedCaptionColor value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics)->get_FontColor(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics::ComputedFontColor() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics)->get_ComputedFontColor(put_abi(value))); return value; } template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics::FontOpacity() const { winrt::Windows::Media::ClosedCaptioning::ClosedCaptionOpacity value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics)->get_FontOpacity(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics::FontSize() const { winrt::Windows::Media::ClosedCaptioning::ClosedCaptionSize value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics)->get_FontSize(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics::FontStyle() const { winrt::Windows::Media::ClosedCaptioning::ClosedCaptionStyle value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics)->get_FontStyle(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics::FontEffect() const { winrt::Windows::Media::ClosedCaptioning::ClosedCaptionEdgeEffect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics)->get_FontEffect(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics::BackgroundColor() const { winrt::Windows::Media::ClosedCaptioning::ClosedCaptionColor value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics)->get_BackgroundColor(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics::ComputedBackgroundColor() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics)->get_ComputedBackgroundColor(put_abi(value))); return value; } template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics::BackgroundOpacity() const { winrt::Windows::Media::ClosedCaptioning::ClosedCaptionOpacity value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics)->get_BackgroundOpacity(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics::RegionColor() const { winrt::Windows::Media::ClosedCaptioning::ClosedCaptionColor value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics)->get_RegionColor(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics::ComputedRegionColor() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics)->get_ComputedRegionColor(put_abi(value))); return value; } template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics::RegionOpacity() const { winrt::Windows::Media::ClosedCaptioning::ClosedCaptionOpacity value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics)->get_RegionOpacity(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics2::PropertiesChanged(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics2)->add_PropertiesChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics2::PropertiesChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, PropertiesChanged(handler)); } template auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics2::PropertiesChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics2)->remove_PropertiesChanged(impl::bind_in(token)); } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FontColor(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FontColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ComputedFontColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ComputedFontColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FontOpacity(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FontOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FontSize(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FontSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FontStyle(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FontStyle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FontEffect(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FontEffect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BackgroundColor(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BackgroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ComputedBackgroundColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ComputedBackgroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BackgroundOpacity(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BackgroundOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RegionColor(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RegionColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ComputedRegionColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ComputedRegionColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RegionOpacity(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RegionOpacity()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_PropertiesChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PropertiesChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PropertiesChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PropertiesChanged(*reinterpret_cast(&token)); return 0; } }; #endif } WINRT_EXPORT namespace winrt::Windows::Media::ClosedCaptioning { inline auto ClosedCaptionProperties::FontColor() { return impl::call_factory_cast([](IClosedCaptionPropertiesStatics const& f) { return f.FontColor(); }); } inline auto ClosedCaptionProperties::ComputedFontColor() { return impl::call_factory_cast([](IClosedCaptionPropertiesStatics const& f) { return f.ComputedFontColor(); }); } inline auto ClosedCaptionProperties::FontOpacity() { return impl::call_factory_cast([](IClosedCaptionPropertiesStatics const& f) { return f.FontOpacity(); }); } inline auto ClosedCaptionProperties::FontSize() { return impl::call_factory_cast([](IClosedCaptionPropertiesStatics const& f) { return f.FontSize(); }); } inline auto ClosedCaptionProperties::FontStyle() { return impl::call_factory_cast([](IClosedCaptionPropertiesStatics const& f) { return f.FontStyle(); }); } inline auto ClosedCaptionProperties::FontEffect() { return impl::call_factory_cast([](IClosedCaptionPropertiesStatics const& f) { return f.FontEffect(); }); } inline auto ClosedCaptionProperties::BackgroundColor() { return impl::call_factory_cast([](IClosedCaptionPropertiesStatics const& f) { return f.BackgroundColor(); }); } inline auto ClosedCaptionProperties::ComputedBackgroundColor() { return impl::call_factory_cast([](IClosedCaptionPropertiesStatics const& f) { return f.ComputedBackgroundColor(); }); } inline auto ClosedCaptionProperties::BackgroundOpacity() { return impl::call_factory_cast([](IClosedCaptionPropertiesStatics const& f) { return f.BackgroundOpacity(); }); } inline auto ClosedCaptionProperties::RegionColor() { return impl::call_factory_cast([](IClosedCaptionPropertiesStatics const& f) { return f.RegionColor(); }); } inline auto ClosedCaptionProperties::ComputedRegionColor() { return impl::call_factory_cast([](IClosedCaptionPropertiesStatics const& f) { return f.ComputedRegionColor(); }); } inline auto ClosedCaptionProperties::RegionOpacity() { return impl::call_factory_cast([](IClosedCaptionPropertiesStatics const& f) { return f.RegionOpacity(); }); } inline auto ClosedCaptionProperties::PropertiesChanged(winrt::Windows::Foundation::EventHandler const& handler) { return impl::call_factory([&](IClosedCaptionPropertiesStatics2 const& f) { return f.PropertiesChanged(handler); }); } inline auto ClosedCaptionProperties::PropertiesChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) { auto f = get_activation_factory(); return ClosedCaptionProperties::PropertiesChanged_revoker{ f, f.PropertiesChanged(handler) }; } inline auto ClosedCaptionProperties::PropertiesChanged(winrt::event_token const& token) { impl::call_factory([&](IClosedCaptionPropertiesStatics2 const& f) { return f.PropertiesChanged(token); }); } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif