cocos2d-x  2.1.1
CCLabelProtocol Class Referenceabstract

Common interface for Labels. More...

#include <CCProtocols.h>

Inheritance diagram for CCLabelProtocol:
CCLabelAtlas CCLabelBMFont CCLabelTTF CCTextFieldTTF

Public Member Functions

virtual void setString (const char *label)=0
 Sets a new label using an string.
 
virtual const char * getString (void)=0
 Returns the string that is currently being used in this label.
 

Detailed Description

Common interface for Labels.

Member Function Documentation

virtual const char* getString ( void  )
pure virtual

Returns the string that is currently being used in this label.

Returns
The string that is currently being used in this label

Implemented in CCLabelBMFont, CCTextFieldTTF, CCLabelTTF, and CCLabelAtlas.

virtual void setString ( const char *  label)
pure virtual

Sets a new label using an string.

Parameters
Anull terminated string

Implemented in CCLabelBMFont, CCTextFieldTTF, CCLabelTTF, and CCLabelAtlas.


The documentation for this class was generated from the following file:
  • /Users/zhangkoumyou/SourceCode/cocos2d-x/cocos2dx/include/CCProtocols.h