From 52478c30118e1f1520f2a490fd2f2e8d3b8894d9 Mon Sep 17 00:00:00 2001 From: Mohamad Al-Jaf Date: Wed, 5 Apr 2023 20:25:42 -0400 Subject: [PATCH] include: Add Windows.UI.Composition.Vector2KeyFrameAnimation 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 06fd23f28cc..090e506f2f0 100644 --- a/include/windows.ui.composition.idl +++ b/include/windows.ui.composition.idl @@ -75,6 +75,7 @@ namespace Windows.UI.Composition { interface IScalarKeyFrameAnimation; interface ISpriteVisual; interface ISpriteVisual2; + interface IVector2KeyFrameAnimation; interface IVisual; interface IVisual2; interface IVisual3; @@ -105,6 +106,7 @@ namespace Windows.UI.Composition { runtimeclass QuaternionKeyFrameAnimation; runtimeclass ScalarKeyFrameAnimation; runtimeclass SpriteVisual; + runtimeclass Vector2KeyFrameAnimation; runtimeclass Visual; runtimeclass VisualCollection; @@ -547,6 +549,20 @@ namespace Windows.UI.Composition { [propput] HRESULT Brush([in] Windows.UI.Composition.CompositionBrush *value); } + [ + contract(Windows.Foundation.UniversalApiContract, 2.0), + exclusiveto(Windows.UI.Composition.Vector2KeyFrameAnimation), + uuid(df414515-4e29-4f11-b55e-bf2a6eb36294) + ] + interface IVector2KeyFrameAnimation : IInspectable + { + [overload("InsertKeyFrame")] HRESULT InsertKeyFrame([in] FLOAT key, [in] Windows.Foundation.Numerics.Vector2 value); + [overload("InsertKeyFrame")] HRESULT InsertKeyFrameWithEasingFunction( + [in] FLOAT key, [in] Windows.Foundation.Numerics.Vector2 value, + [in] Windows.UI.Composition.CompositionEasingFunction *function + ); + } + [ contract(Windows.Foundation.UniversalApiContract, 2.0), exclusiveto(Windows.UI.Composition.Visual), @@ -825,6 +841,16 @@ namespace Windows.UI.Composition { [contract(Windows.Foundation.UniversalApiContract, 3.0)] interface Windows.UI.Composition.ISpriteVisual2; } + [ + contract(Windows.Foundation.UniversalApiContract, 2.0), + marshaling_behavior(agile), + threading(both) + ] + runtimeclass Vector2KeyFrameAnimation : Windows.UI.Composition.KeyFrameAnimation + { + [default] interface Windows.UI.Composition.IVector2KeyFrameAnimation; + } + [ composable(Windows.UI.Composition.IVisualFactory, public, Windows.Foundation.UniversalApiContract, 2.0), contract(Windows.Foundation.UniversalApiContract, 2.0),