// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_UI_Core_AnimationMetrics_H #define WINRT_Windows_UI_Core_AnimationMetrics_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.Core.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.UI.Core.AnimationMetrics.2.h" namespace winrt::impl { template auto consume_Windows_UI_Core_AnimationMetrics_IAnimationDescription::Animations() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IAnimationDescription)->get_Animations(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Core_AnimationMetrics_IAnimationDescription::StaggerDelay() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IAnimationDescription)->get_StaggerDelay(put_abi(value))); return value; } template auto consume_Windows_UI_Core_AnimationMetrics_IAnimationDescription::StaggerDelayFactor() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IAnimationDescription)->get_StaggerDelayFactor(&value)); return value; } template auto consume_Windows_UI_Core_AnimationMetrics_IAnimationDescription::DelayLimit() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IAnimationDescription)->get_DelayLimit(put_abi(value))); return value; } template auto consume_Windows_UI_Core_AnimationMetrics_IAnimationDescription::ZOrder() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IAnimationDescription)->get_ZOrder(&value)); return value; } template auto consume_Windows_UI_Core_AnimationMetrics_IAnimationDescriptionFactory::CreateInstance(winrt::Windows::UI::Core::AnimationMetrics::AnimationEffect const& effect, winrt::Windows::UI::Core::AnimationMetrics::AnimationEffectTarget const& target) const { void* animation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IAnimationDescriptionFactory)->CreateInstance(static_cast(effect), static_cast(target), &animation)); return winrt::Windows::UI::Core::AnimationMetrics::AnimationDescription{ animation, take_ownership_from_abi }; } template auto consume_Windows_UI_Core_AnimationMetrics_IOpacityAnimation::InitialOpacity() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IOpacityAnimation)->get_InitialOpacity(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Core_AnimationMetrics_IOpacityAnimation::FinalOpacity() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IOpacityAnimation)->get_FinalOpacity(&value)); return value; } template auto consume_Windows_UI_Core_AnimationMetrics_IPropertyAnimation::Type() const { winrt::Windows::UI::Core::AnimationMetrics::PropertyAnimationType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IPropertyAnimation)->get_Type(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Core_AnimationMetrics_IPropertyAnimation::Delay() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IPropertyAnimation)->get_Delay(put_abi(value))); return value; } template auto consume_Windows_UI_Core_AnimationMetrics_IPropertyAnimation::Duration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IPropertyAnimation)->get_Duration(put_abi(value))); return value; } template auto consume_Windows_UI_Core_AnimationMetrics_IPropertyAnimation::Control1() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IPropertyAnimation)->get_Control1(put_abi(value))); return value; } template auto consume_Windows_UI_Core_AnimationMetrics_IPropertyAnimation::Control2() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IPropertyAnimation)->get_Control2(put_abi(value))); return value; } template auto consume_Windows_UI_Core_AnimationMetrics_IScaleAnimation::InitialScaleX() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IScaleAnimation)->get_InitialScaleX(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Core_AnimationMetrics_IScaleAnimation::InitialScaleY() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IScaleAnimation)->get_InitialScaleY(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Core_AnimationMetrics_IScaleAnimation::FinalScaleX() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IScaleAnimation)->get_FinalScaleX(&value)); return value; } template auto consume_Windows_UI_Core_AnimationMetrics_IScaleAnimation::FinalScaleY() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IScaleAnimation)->get_FinalScaleY(&value)); return value; } template auto consume_Windows_UI_Core_AnimationMetrics_IScaleAnimation::NormalizedOrigin() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::AnimationMetrics::IScaleAnimation)->get_NormalizedOrigin(put_abi(value))); return value; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Animations(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Animations()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StaggerDelay(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StaggerDelay()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StaggerDelayFactor(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StaggerDelayFactor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DelayLimit(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DelayLimit()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ZOrder(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ZOrder()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(int32_t effect, int32_t target, void** animation) noexcept final try { clear_abi(animation); typename D::abi_guard guard(this->shim()); *animation = detach_from(this->shim().CreateInstance(*reinterpret_cast(&effect), *reinterpret_cast(&target))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_InitialOpacity(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().InitialOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FinalOpacity(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FinalOpacity()); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall get_Type(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Type()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Delay(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Delay()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Duration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Duration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Control1(winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Control1()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Control2(winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Control2()); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_InitialScaleX(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().InitialScaleX()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InitialScaleY(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().InitialScaleY()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FinalScaleX(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FinalScaleX()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FinalScaleY(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FinalScaleY()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NormalizedOrigin(winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NormalizedOrigin()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::UI::Core::AnimationMetrics { inline AnimationDescription::AnimationDescription(winrt::Windows::UI::Core::AnimationMetrics::AnimationEffect const& effect, winrt::Windows::UI::Core::AnimationMetrics::AnimationEffectTarget const& target) : AnimationDescription(impl::call_factory([&](IAnimationDescriptionFactory const& f) { return f.CreateInstance(effect, target); })) { } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif