CReversalTransition Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CReversalTransition Class.

Encapsulates a reversal transition.

class CReversalTransition : public CBaseTransition;  

Public Constructors

NameDescription
CReversalTransition::CReversalTransitionConstructs a reversal transition object and initializes its duration.

Public Methods

NameDescription
CReversalTransition::CreateCalls the transition library to create encapsulated transition COM object. (Overrides CBaseTransition::Create.)

Public Data Members

NameDescription
CReversalTransition::m_durationThe duration of the transition.

A reversal transition smoothly changes direction over a given duration. The final value will be the same as the initial value and the final velocity will be the negative of the initial velocity. Because all transitions are cleared automatically, it's recommended to allocated them using operator new. The encapsulated IUIAnimationTransition COM object is created by CAnimationController::AnimateGroup, until then it's NULL. Changing member variables after creation of this COM object has no effect.

CObject

CBaseTransition

CReversalTransition

Header: afxanimationcontroller.h

Calls the transition library to create encapsulated transition COM object.

virtual BOOL Create(
    IUIAnimationTransitionLibrary* pLibrary,  
    IUIAnimationTransitionFactory* */);

Parameters

pLibrary
A pointer to transition library, which is responsible for creation of standard transitions.

Return Value

TRUE if transition is created successfully; otherwise FALSE.

Constructs a reversal transition object and initializes its duration.

CReversalTransition(UI_ANIMATION_SECONDS duration);

Parameters

duration
The duration of the transition.

The duration of the transition.

UI_ANIMATION_SECONDS m_duration;  

Classes

Show: