cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ColorFrame Class Reference

#include <CCFrame.h>

Inheritance diagram for ColorFrame:
Frame Ref

Public Member Functions

 ColorFrame ()
virtual void onEnter (Frame *nextFrame, int currentFrameIndex) override
local onEnter ( local nextFrame, local currentFrameIndex)
virtual void apply (float percent) override
virtual Frame * clone () override
var clone ()
local clone ()
void setAlpha (GLubyte alpha)
var setAlpha ( var alpha)
local setAlpha ( local alpha)
GLubyte getAlpha () const
void setColor (const cocos2d::Color3B &color)
cocos2d::Color3B getColor () const
- Public Member Functions inherited from Frame
virtual void setFrameIndex (unsigned int frameIndex)
var setFrameIndex ( var frameIndex)
local setFrameIndex ( local frameIndex)
virtual unsigned int getFrameIndex () const
virtual void setTimeline (Timeline *timeline)
local setTimeline ( local timeline)
virtual Timeline * getTimeline () const
virtual void setNode (cocos2d::Node *node)
local setNode ( local node)
virtual cocos2d::Node * getNode () const
local getNode ()
virtual void setTween (bool tween)
local setTween ( local tween)
virtual bool isTween () const
var isTween ()
local isTween ()
virtual bool isEnterWhenPassed ()
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Ref * autorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 Destructor. More...
 

Static Public Member Functions

static ColorFrame * create ()

Protected Attributes

GLubyte _alpha
cocos2d::Color3B _color
var _color
local _color
int _betweenRed
int _betweenGreen
int _betweenBlue
- Protected Attributes inherited from Frame
unsigned int _frameIndex
bool _tween
var _tween
local _tween
bool _enterWhenPassed
var _enterWhenPassed
local _enterWhenPassed
Timeline * _timeline
cocos2d::Node * _node
var _node
local _node
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Additional Inherited Members

- Protected Member Functions inherited from Frame
 Frame ()
virtual ~Frame ()
virtual void emitEvent ()
virtual void cloneProperty (Frame *frame)
local cloneProperty ( local frame)
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 

Constructor & Destructor Documentation

var ColorFrame ( )
local ColorFrame ( )

Member Function Documentation

virtual void apply ( float  percent)
overridevirtual

Reimplemented from Frame.

var apply ( var  percent)
overridevirtual

Reimplemented from Frame.

local apply ( local  percent)
overridevirtual

Reimplemented from Frame.

virtual Frame* clone ( )
overridevirtual

Implements Frame.

var clone ( )
overridevirtual

Implements Frame.

local clone ( )
overridevirtual

Implements Frame.

static ColorFrame* create ( )
static
var create ( )
static
local create ( )
static
GLubyte getAlpha ( ) const
inline
var getAlpha ( )
inline
local getAlpha ( )
inline
cocos2d::Color3B getColor ( ) const
inline
var getColor ( )
inline
local getColor ( )
inline
virtual void onEnter ( Frame *  nextFrame,
int  currentFrameIndex 
)
overridevirtual

Implements Frame.

var onEnter ( var  nextFrame,
var  currentFrameIndex 
)
overridevirtual

Implements Frame.

local onEnter ( local  nextFrame,
local  currentFrameIndex 
)
overridevirtual

Implements Frame.

void setAlpha ( GLubyte  alpha)
inline
Deprecated:
Use method setAlpha() and getAlpha() of AlphaFrame instead
var setAlpha ( var  alpha)
inline
Deprecated:
Use method setAlpha() and getAlpha() of AlphaFrame instead
local setAlpha ( local  alpha)
inline
Deprecated:
Use method setAlpha() and getAlpha() of AlphaFrame instead
void setColor ( const cocos2d::Color3B &  color)
inline
var setColor ( var  color)
inline
local setColor ( local  color)
inline

Member Data Documentation

GLubyte _alpha
protected
var _alpha
protected
local _alpha
protected
int _betweenBlue
protected
var _betweenBlue
protected
local _betweenBlue
protected
int _betweenGreen
protected
var _betweenGreen
protected
local _betweenGreen
protected
int _betweenRed
protected
var _betweenRed
protected
local _betweenRed
protected
cocos2d::Color3B _color
protected
var _color
protected
local _color
protected

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