IUIAnimationInterpolator::GetDependencies method (uianimation.h)
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.
Syntax
HRESULT GetDependencies(
[out] UI_ANIMATION_DEPENDENCIES *initialValueDependencies,
[out] UI_ANIMATION_DEPENDENCIES *initialVelocityDependencies,
[out] UI_ANIMATION_DEPENDENCIES *durationDependencies
);
Parameters
[out] initialValueDependencies
Aspects of the interpolator that depend on the initial value passed to SetInitialValueAndVelocity.
[out] initialVelocityDependencies
Aspects of the interpolator that depend on the initial velocity passed to SetInitialValueAndVelocity.
[out] durationDependencies
Aspects of the interpolator that depend on the duration passed to SetDuration.
Return value
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See Windows Animation Error Codes for a list of error codes.
Remarks
This method is called to identify which aspects of the custom interpolator are affected by certain inputs: value, velocity, and duration. For each of these inputs, the interpolator returns either of the following:
- The bitwise-OR of any members of UI_ANIMATION_DEPENDENCIES that apply.
- UI_ANIMATION_DEPENDENCY_NONE if nothing depends on the input.
It is important that an interpolator return correct set of flags. If a flag is not present for an output, Windows Animation assumes that the corresponding parameter does not affect that aspect of the interpolator's results. For example, if the custom interpolator does not include UI_ANIMATION_DEPENDENCY_FINAL_VALUE for initialVelocityDependencies, Windows Animation may call SetInitialValueAndVelocity with an arbitrary velocity parameter, then call GetFinalValue to determine the final value. The interpolator's implementation of GetFinalValue must return the same result no matter what velocity parameter has been passed to SetInitialValueAndVelocity because the interpolator has claimed that the transition's final value does not depend on the initial velocity.
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 |
DLL | UIAnimation.dll |