From 62ac0262861eab1d92d479dfd070ef0d89136624 Mon Sep 17 00:00:00 2001 From: Mohamad Al-Jaf Date: Wed, 5 Apr 2023 20:29:07 -0400 Subject: [PATCH] include: Add Windows.UI.Composition.Vector4KeyFrameAnimation definition. Needed by Windows.UI.Composition.Compositor. --- include/windows.ui.composition.idl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/include/windows.ui.composition.idl b/include/windows.ui.composition.idl index 23dba7d73b4..0793b8fee1c 100644 --- a/include/windows.ui.composition.idl +++ b/include/windows.ui.composition.idl @@ -77,6 +77,7 @@ namespace Windows.UI.Composition { interface ISpriteVisual2; interface IVector2KeyFrameAnimation; interface IVector3KeyFrameAnimation; + interface IVector4KeyFrameAnimation; interface IVisual; interface IVisual2; interface IVisual3; @@ -109,6 +110,7 @@ namespace Windows.UI.Composition { runtimeclass SpriteVisual; runtimeclass Vector2KeyFrameAnimation; runtimeclass Vector3KeyFrameAnimation; + runtimeclass Vector4KeyFrameAnimation; runtimeclass Visual; runtimeclass VisualCollection; @@ -579,6 +581,20 @@ namespace Windows.UI.Composition { ); } + [ + contract(Windows.Foundation.UniversalApiContract, 2.0), + exclusiveto(Windows.UI.Composition.Vector4KeyFrameAnimation), + uuid(2457945b-addd-4385-9606-b6a3d5e4e1b9) + ] + interface IVector4KeyFrameAnimation : IInspectable + { + [overload("InsertKeyFrame")] HRESULT InsertKeyFrame([in] FLOAT key, [in] Windows.Foundation.Numerics.Vector4 value); + [overload("InsertKeyFrame")] HRESULT InsertKeyFrameWithEasingFunction( + [in] FLOAT key, [in] Windows.Foundation.Numerics.Vector4 value, + [in] Windows.UI.Composition.CompositionEasingFunction *function + ); + } + [ contract(Windows.Foundation.UniversalApiContract, 2.0), exclusiveto(Windows.UI.Composition.Visual), @@ -877,6 +893,16 @@ namespace Windows.UI.Composition { [default] interface Windows.UI.Composition.IVector3KeyFrameAnimation; } + [ + contract(Windows.Foundation.UniversalApiContract, 2.0), + marshaling_behavior(agile), + threading(both) + ] + runtimeclass Vector4KeyFrameAnimation : Windows.UI.Composition.KeyFrameAnimation + { + [default] interface Windows.UI.Composition.IVector4KeyFrameAnimation; + } + [ composable(Windows.UI.Composition.IVisualFactory, public, Windows.Foundation.UniversalApiContract, 2.0), contract(Windows.Foundation.UniversalApiContract, 2.0),