Cocos2d-x  v3.17
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
ActionTweenDelegate Class Referenceabstract

The delegate class for ActionTween. More...

Inherited by ScrollView.

Public Member Functions

virtual void updateTweenAction (float value, const std::string &key)=0
 The callback function when ActionTween is running. More...
 

Detailed Description

The delegate class for ActionTween.

If you want to use ActionTween on a node. You should implement the node follow these steps:

  1. The node should be inherit from ActionTweenDelegate.
  2. Override the virtual method updateTweenAction in the node.

Then once you running ActionTween on the node, the method updateTweenAction will be invoked.

Member Function Documentation

virtual void updateTweenAction ( float  value,
const std::string &  key 
)
pure virtual

The callback function when ActionTween is running.

Parameters
valueThe new value of the specified key.
keyThe key of property which should be updated.

Implemented in ScrollView.

var updateTweenAction ( var  value,
var  key 
)
pure virtual

The callback function when ActionTween is running.

Parameters
valueThe new value of the specified key.
keyThe key of property which should be updated.

Implemented in ScrollView.

local updateTweenAction ( local  value,
local  key 
)
pure virtual

The callback function when ActionTween is running.

Parameters
valueThe new value of the specified key.
keyThe key of property which should be updated.

Implemented in ScrollView.


The documentation for this class was generated from the following file: