// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_UI_Composition_Diagnostics_H #define WINRT_Windows_UI_Composition_Diagnostics_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.UI.Composition.h" #include "winrt/impl/Windows.UI.Composition.2.h" #include "winrt/impl/Windows.UI.Composition.Diagnostics.2.h" namespace winrt::impl { template auto consume_Windows_UI_Composition_Diagnostics_ICompositionDebugHeatMaps::Hide(winrt::Windows::UI::Composition::Visual const& subtree) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Diagnostics::ICompositionDebugHeatMaps)->Hide(*(void**)(&subtree))); } template auto consume_Windows_UI_Composition_Diagnostics_ICompositionDebugHeatMaps::ShowMemoryUsage(winrt::Windows::UI::Composition::Visual const& subtree) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Diagnostics::ICompositionDebugHeatMaps)->ShowMemoryUsage(*(void**)(&subtree))); } template auto consume_Windows_UI_Composition_Diagnostics_ICompositionDebugHeatMaps::ShowOverdraw(winrt::Windows::UI::Composition::Visual const& subtree, winrt::Windows::UI::Composition::Diagnostics::CompositionDebugOverdrawContentKinds const& contentKinds) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Diagnostics::ICompositionDebugHeatMaps)->ShowOverdraw(*(void**)(&subtree), static_cast(contentKinds))); } template auto consume_Windows_UI_Composition_Diagnostics_ICompositionDebugHeatMaps::ShowRedraw(winrt::Windows::UI::Composition::Visual const& subtree) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Diagnostics::ICompositionDebugHeatMaps)->ShowRedraw(*(void**)(&subtree))); } template auto consume_Windows_UI_Composition_Diagnostics_ICompositionDebugSettings::HeatMaps() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Diagnostics::ICompositionDebugSettings)->get_HeatMaps(&value)); return winrt::Windows::UI::Composition::Diagnostics::CompositionDebugHeatMaps{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Composition_Diagnostics_ICompositionDebugSettingsStatics::TryGetSettings(winrt::Windows::UI::Composition::Compositor const& compositor) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Composition::Diagnostics::ICompositionDebugSettingsStatics)->TryGetSettings(*(void**)(&compositor), &result)); return winrt::Windows::UI::Composition::Diagnostics::CompositionDebugSettings{ result, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Hide(void* subtree) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Hide(*reinterpret_cast(&subtree)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowMemoryUsage(void* subtree) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowMemoryUsage(*reinterpret_cast(&subtree)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowOverdraw(void* subtree, uint32_t contentKinds) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowOverdraw(*reinterpret_cast(&subtree), *reinterpret_cast(&contentKinds)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowRedraw(void* subtree) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowRedraw(*reinterpret_cast(&subtree)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_HeatMaps(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HeatMaps()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall TryGetSettings(void* compositor, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryGetSettings(*reinterpret_cast(&compositor))); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::UI::Composition::Diagnostics { constexpr auto operator|(CompositionDebugOverdrawContentKinds const left, CompositionDebugOverdrawContentKinds const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(CompositionDebugOverdrawContentKinds& left, CompositionDebugOverdrawContentKinds const right) noexcept { left = left | right; return left; } constexpr auto operator&(CompositionDebugOverdrawContentKinds const left, CompositionDebugOverdrawContentKinds const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(CompositionDebugOverdrawContentKinds& left, CompositionDebugOverdrawContentKinds const right) noexcept { left = left & right; return left; } constexpr auto operator~(CompositionDebugOverdrawContentKinds const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(CompositionDebugOverdrawContentKinds const left, CompositionDebugOverdrawContentKinds const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(CompositionDebugOverdrawContentKinds& left, CompositionDebugOverdrawContentKinds const right) noexcept { left = left ^ right; return left; } inline auto CompositionDebugSettings::TryGetSettings(winrt::Windows::UI::Composition::Compositor const& compositor) { return impl::call_factory([&](ICompositionDebugSettingsStatics const& f) { return f.TryGetSettings(compositor); }); } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif