|
cocos2d-x
2.1.1
|
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCLabelProtocol Class Referenceabstract
Common interface for Labels. More...
#include <CCProtocols.h>
Inheritance diagram for CCLabelProtocol:
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
|
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.
|
pure virtual |
Sets a new label using an string.
- Parameters
-
A null 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

