CLinearTransition 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 CLinearTransition Class.
Encapsulates a linear transition.
class CLinearTransition : public CBaseTransition;
Name | Description |
---|---|
CLinearTransition::CLinearTransition | Constructs a linear transition object and initializes it with duration and final value. |
Name | Description |
---|---|
CLinearTransition::Create | Calls the transition library to create encapsulated transition COM object. (Overrides CBaseTransition::Create.) |
Name | Description |
---|---|
CLinearTransition::m_dblFinalValue | The value of the animation variable at the end of the transition. |
CLinearTransition::m_duration | The duration of the transition. |
During a linear transition, the value of the animation variable transitions linearly from its initial value to a specified final value. 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.
Header: afxanimationcontroller.h
Constructs a linear transition object and initializes it with duration and final value.
CLinearTransition(
UI_ANIMATION_SECONDS duration,
DOUBLE dblFinalValue);
duration
The duration of the transition.
dblFinalValue
The value of the animation variable at the end of the transition.
Calls the transition library to create encapsulated transition COM object.
virtual BOOL Create(
IUIAnimationTransitionLibrary* pLibrary,
IUIAnimationTransitionFactory* */);
pLibrary
A pointer to transition library, which is responsible for creation of standard transitions.
TRUE if transition is created successfully; otherwise FALSE.
The value of the animation variable at the end of the transition.
DOUBLE m_dblFinalValue;
The duration of the transition.
UI_ANIMATION_SECONDS m_duration;