Share via


CAnimationVariable Class

Represents an animation variable.

class CAnimationVariable;

Members

Public Constructors

Name

Description

CAnimationVariable::CAnimationVariable

Constructs an animation variable object.

CAnimationVariable::~CAnimationVariable

The destructor. Called when a CAnimationVariable object is being destroyed.

Public Methods

Name

Description

CAnimationVariable::AddTransition

Adds a transition.

CAnimationVariable::ApplyTransitions

Adds transitions from the internal list to storyboard.

CAnimationVariable::ClearTransitions

Clears transitions.

CAnimationVariable::Create

Creates the underlying animation variable COM object.

CAnimationVariable::CreateTransitions

Creates all transitions to be applied to this animation variable.

CAnimationVariable::EnableIntegerValueChangedEvent

Enables or disables the IntegerValueChanged event.

CAnimationVariable::EnableValueChangedEvent

Enables or disables the ValueChanged event.

CAnimationVariable::GetDefaultValue

Returns default value.

CAnimationVariable::GetParentAnimationObject

Returns the parent animation object.

CAnimationVariable::GetValue

Overloaded. Returns the current value of animation variable.

CAnimationVariable::GetVariable

Returns a pointer to IUIAnimationVariable COM object.

CAnimationVariable::SetDefaultValue

Sets default value and releases IUIAnimationVariable COM object.

Protected Methods

Name

Description

CAnimationVariable::SetParentAnimationObject

Sets the relationship between an animation variable and an animation object.

Public Data Members

Name

Description

CAnimationVariable::m_bAutodestroyTransitions

Specifies whether related transition objects should be deleted.

Protected Data Members

Name

Description

CAnimationVariable::m_dblDefaultValue

Specifies the default value, which is propagated to IUIAnimationVariable.

CAnimationVariable::m_lstTransitions

Contains a list of transitions that animate this animation variable.

CAnimationVariable::m_pParentObject

A pointer to an animation object that encapsulates this animation variable.

CAnimationVariable::m_variable

Stores a pointer to IUIAnimationVariable COM object. NULL if the COM object has not been created yet, or if creation failed.

Remarks

The CAnimationVariable class encapsulates IUIAnimationVariable COM object. It also holds a list of transitions to be applied to the animation variable in a storyboard. CAnimationVariable objects are embedded to animation objects, which can represent in an application an animated value, point, size, color and rectangle.

Inheritance Hierarchy

CAnimationVariable

Requirements

Header: afxanimationcontroller.h

See Also

Other Resources

MFC Classes