Condividi tramite


CAnimationVariableChangeHandler Class

Implements a callback, which is called by the Animation API when the value of an animation variable changes.

class CAnimationVariableChangeHandler : public CUIAnimationVariableChangeHandlerBase<CAnimationVariableChangeHandler>;

Members

Public Constructors

Name

Description

CAnimationVariableChangeHandler::CAnimationVariableChangeHandler

Constructs a CAnimationVariableChangeHandler object.

Public Methods

Name

Description

CAnimationVariableChangeHandler::CreateInstance

Creates an instance of CAnimationVariableChangeHandler object.

CAnimationVariableChangeHandler::OnValueChanged

Called when a value of an animation variable has changed. (Overrides CUIAnimationVariableChangeHandlerBase::OnValueChanged.)

CAnimationVariableChangeHandler::SetAnimationController

Stores a pointer to animation controller to route events.

Remarks

This event handler is created and passed to IUIAnimationVariable::SetVariableChangeHandler method, when you call CAnimationVariable::EnableValueChangedEvent or CAnimationBaseObject::EnableValueChangedEvent (which enables this event for all animation variables encapsulated in an animation object).

Inheritance Hierarchy

CUIAnimationCallbackBase

CUIAnimationVariableChangeHandlerBase

CAnimationVariableChangeHandler

Requirements

Header: afxanimationcontroller.h

See Also

Other Resources

MFC Classes