Condividi tramite


CAnimationRect::AddTransition

Adds transitions for left, top, right and bottom coordinates.

void AddTransition(
   CBaseTransition* pLeftTransition,
   CBaseTransition* pTopTransition,
   CBaseTransition* pRightTransition,
   CBaseTransition* pBottomTransition
);

Parameters

  • pLeftTransition
    Specifies transition for the left side.

  • pTopTransition
    Specifies transition for the top side.

  • pRightTransition
    Specifies transition for the right side.

  • pBottomTransition
    Specifies transition for the bottom side.

Remarks

Call this function to add the specified transitions to the internal list of transitions to be applied to animation variables for each rectangle sides. When you add transitions, they are not applied immediately and stored in an internal list. Transitions are applied (added to a storyboard for a particular value) when you call CAnimationController::AnimateGroup. If you don't need to apply a transition to one of the rectangle sides, you can pass NULL.

Requirements

Header: afxanimationcontroller.h

See Also

Reference

CAnimationRect Class