Skip to content

Latest commit

 

History

History
127 lines (82 loc) · 4.54 KB

canimationvariableintegerchangehandler-class.md

File metadata and controls

127 lines (82 loc) · 4.54 KB
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: CAnimationVariableIntegerChangeHandler Class
CAnimationVariableIntegerChangeHandler Class
11/04/2016
CAnimationVariableIntegerChangeHandler
AFXANIMATIONCONTROLLER/CAnimationVariableIntegerChangeHandler
AFXANIMATIONCONTROLLER/CAnimationVariableIntegerChangeHandler::CAnimationVariableIntegerChangeHandler
AFXANIMATIONCONTROLLER/CAnimationVariableIntegerChangeHandler::CreateInstance
AFXANIMATIONCONTROLLER/CAnimationVariableIntegerChangeHandler::OnIntegerValueChanged
AFXANIMATIONCONTROLLER/CAnimationVariableIntegerChangeHandler::SetAnimationController
CAnimationVariableIntegerChangeHandler [MFC], CAnimationVariableIntegerChangeHandler
CAnimationVariableIntegerChangeHandler [MFC], CreateInstance
CAnimationVariableIntegerChangeHandler [MFC], OnIntegerValueChanged
CAnimationVariableIntegerChangeHandler [MFC], SetAnimationController
6ac8e91b-e514-4ff6-babd-33f77c4b2b61

CAnimationVariableIntegerChangeHandler Class

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

Syntax

class CAnimationVariableIntegerChangeHandler : public CUIAnimationVariableIntegerChangeHandlerBase<CAnimationVariableIntegerChangeHandler>; 

Members

Public Constructors

NameDescription
CAnimationVariableIntegerChangeHandler::CAnimationVariableIntegerChangeHandlerConstructs a CAnimationVariableIntegerChangeHandler object.

Public Methods

NameDescription
CAnimationVariableIntegerChangeHandler::CreateInstanceCreates an instance of CAnimationVariableIntegerChangeHandler callback.
CAnimationVariableIntegerChangeHandler::OnIntegerValueChangedCalled when a value of an animation variable has changed. (Overrides CUIAnimationVariableIntegerChangeHandlerBase::OnIntegerValueChanged.)
CAnimationVariableIntegerChangeHandler::SetAnimationControllerStores a pointer to animation controller to route events.

Remarks

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

Inheritance Hierarchy

MFC Classes

CUIAnimationCallbackBase

CUIAnimationVariableIntegerChangeHandlerBase

CAnimationVariableIntegerChangeHandler

Requirements

Header: afxanimationcontroller.h

CAnimationVariableIntegerChangeHandler::CAnimationVariableIntegerChangeHandler

Constructs a CAnimationVariableIntegerChangeHandler object.

CAnimationVariableIntegerChangeHandler (); 

CAnimationVariableIntegerChangeHandler::CreateInstance

Creates an instance of CAnimationVariableIntegerChangeHandler callback.

static COM_DECLSPEC_NOTHROW HRESULT CreateInstance( CAnimationController* pAnimationController, IUIAnimationVariableIntegerChangeHandler** ppHandler); 

Parameters

pAnimationController
A pointer to animation controller, which will receive events.

ppHandler

Return Value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

CAnimationVariableIntegerChangeHandler::OnIntegerValueChanged

Called when a value of an animation variable has changed.

IFACEMETHOD(OnIntegerValueChanged) ( __in IUIAnimationStoryboard* storyboard, __in IUIAnimationVariable* variable, __in INT32 newValue, __in INT32 previousValue); 

Parameters

storyboard
The storyboard that is animating the variable.

variable
The animation variable that was updated.

newValue
The new rounded value.

previousValue
The previous rounded value.

Return Value

S_OK if the method succeeds; otherwise E_FAIL.

CAnimationVariableIntegerChangeHandler::SetAnimationController

Stores a pointer to animation controller to route events.

voidSetAnimationController(CAnimationController* pAnimationController);

Parameters

pAnimationController
A pointer to animation controller, which will receive events.

See also

Classes

close