Share via


CAnimationStoryboardEventHandler, classe

Implémente un rappel, qui est appelé par l'API d'animation lorsque l'état d'un storyboard est modifié ou qu'un storyboard est mis à jour.

Syntaxe

class CAnimationStoryboardEventHandler : public CUIAnimationStoryboardEventHandlerBase<CAnimationStoryboardEventHandler>;

Membres

Constructeurs publics

Nom Description
CAnimationStoryboardEventHandler ::CAnimationStoryboardEventHandler Construit un objet CAnimationStoryboardEventHandler.

Méthodes publiques

Nom Description
CAnimationStoryboardEventHandler ::CreateInstance Crée une instance de CAnimationStoryboardEventHandler rappel.
CAnimationStoryboardEventHandler ::OnStoryboardStatusChanged Gère les OnStoryboardStatusChanged événements, qui se produisent lorsque l’état d’un storyboard change (remplace CUIAnimationStoryboardEventHandlerBase::OnStoryboardStatusChanged.)
CAnimationStoryboardEventHandler ::OnStoryboardUpdated Gère les OnStoryboardUpdated événements, qui se produisent lorsqu’un storyboard est mis à jour (remplace CUIAnimationStoryboardEventHandlerBase::OnStoryboardUpdated.)
CAnimationStoryboardEventHandler ::SetAnimationController Stocke un pointeur vers le contrôleur d’animation pour router les événements.

Notes

Ce gestionnaire d’événements est créé et passé à la IUIAnimationStoryboard::SetStoryboardEventHandler méthode, lorsque vous appelez CAnimationController::EnableStoryboardEventHandler.

Hiérarchie d'héritage

CUIAnimationCallbackBase

CUIAnimationStoryboardEventHandlerBase

CAnimationStoryboardEventHandler

Spécifications

En-tête : afxanimationcontroller.h

CAnimationStoryboardEventHandler ::CAnimationStoryboardEventHandler

Construit un objet CAnimationStoryboardEventHandler.

CAnimationStoryboardEventHandler();

CAnimationStoryboardEventHandler ::CreateInstance

Crée une instance de rappel CAnimationStoryboardEventHandler.

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

Paramètres

pAnimationController
Pointeur vers le contrôleur d’animation, qui recevra des événements.

ppHandler

Valeur de retour

Si la méthode réussit, retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

CAnimationStoryboardEventHandler ::OnStoryboardStatusChanged

Gère les événements OnStoryboardStatusChanged, qui se produisent lorsque l’état d’un storyboard change

IFACEMETHOD(OnStoryboardStatusChanged) (
    __in IUIAnimationStoryboard* storyboard,
    __in UI_ANIMATION_STORYBOARD_STATUS newStatus,
    __in UI_ANIMATION_STORYBOARD_STATUS previousStatus);

Paramètres

Storyboard
Pointeur vers le storyboard dont l’état a changé.

newStatus
Spécifie le nouvel état du storyboard.

previousStatus
Spécifie l’état précédent du storyboard.

Valeur de retour

S_OK si la méthode réussit ; sinon, E_FAIL.

CAnimationStoryboardEventHandler ::OnStoryboardUpdated

Gère les événements OnStoryboardUpdated, qui se produisent lorsqu’un storyboard est mis à jour

IFACEMETHOD(OnStoryboardUpdated) (__in IUIAnimationStoryboard* storyboard);

Paramètres

Storyboard
Pointeur vers le storyboard, qui a été mis à jour.

Valeur de retour

S_OK si la méthode réussit ; sinon, E_FAIL.

CAnimationStoryboardEventHandler ::SetAnimationController

Stocke un pointeur vers le contrôleur d’animation pour router les événements.

void SetAnimationController(CAnimationController* pAnimationController);

Paramètres

pAnimationController
Pointeur vers le contrôleur d’animation, qui recevra des événements.

Voir aussi

Classes