IUIAnimationInterpolator interface (uianimation.h)
Defines methods for creating a custom interpolator.
Inheritance
The IUIAnimationInterpolator interface inherits from the IUnknown interface. IUIAnimationInterpolator also has these types of members:
Methods
The IUIAnimationInterpolator interface has these methods.
IUIAnimationInterpolator::GetDependencies Gets the aspects of the interpolator that depend on the initial value or velocity passed to SetInitialValueAndVelocity, or that depend on the duration passed to SetDuration. |
IUIAnimationInterpolator::GetDuration Gets the duration of a transition. |
IUIAnimationInterpolator::GetFinalValue Gets the final value at the end of the transition. |
IUIAnimationInterpolator::InterpolateValue Interpolates the value of an animation variable at the specified offset. |
IUIAnimationInterpolator::InterpolateVelocity Interpolates the velocity, or rate of change, at the specified offset. |
IUIAnimationInterpolator::SetDuration Sets the duration of the transition. |
IUIAnimationInterpolator::SetInitialValueAndVelocity Sets the initial value and velocity at the start of the transition. |
Remarks
Client applications can use the transitions provided in IUIAnimationTransitionLibrary or in a library provided by a third party; however, if you need custom behavior, you can create your own transitions by implementing the IUIAnimationInterpolator interface.
Before Windows Animation can use your custom interpolator, you must wrap it in an object that implements IUIAnimationTransition by calling the IUIAnimationTransitionFactory::CreateTransition method and passing in the custom interpolator. After the interpolator is wrapped, client applications interact with your interpolator using the IUIAnimationTransition interface.
Custom interpolators can be reused across applications, but it is recommended that they be exposed using factory interfaces that return IUIAnimationTransition interfaces.
Examples
For an example, see Custom Interpolator Sample.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7, Windows Vista and Platform Update for Windows Vista [desktop apps | UWP apps] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | uianimation.h |