IUIAnimationInterpolator interface
Defines methods for creating a custom interpolator.
When to implement
Client applications implement this interface to create custom transitions.
When to use
Client applications do not call the IUIAnimationInterpolator methods directly.
Members
The IUIAnimationInterpolator interface inherits from the IUnknown interface. IUIAnimationInterpolator also has these types of members:
Methods
The IUIAnimationInterpolator interface has these methods.
| Method | Description |
|---|---|
| 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. |
| GetDuration |
Gets the duration of the transition. |
| GetFinalValue |
Gets the final value at the end of the transition. |
| InterpolateValue |
Interpolates the value of an animation variable at the specified offset. |
| InterpolateVelocity |
Interpolates the velocity, or rate of change, at the specified offset. |
| SetDuration |
Sets the duration of the transition. |
| 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
|
Minimum supported client |
Windows 7, Windows Vista and Platform Update for Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
None supported |
|
Header |
|
|
IDL |
|
|
DLL |
|
|
IID |
IID_IUIAnimationInterpolator is defined as 7815CBBA-DDF7-478c-A46C-7B6C738B7978 |
See also