cocos2d-x  2.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCLabelProtocol Class Referenceabstract

#include <CCProtocols.h>

Inheritance diagram for CCLabelProtocol:
CCLabelAtlas CCLabelBMFont CCLabelTTF UICCLabelAtlas CCTextFieldTTF UICCTextField

Public Member Functions

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

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, CCLabelTTF, CCTextFieldTTF, and CCLabelAtlas.

virtual void setString ( const char *  label)
pure virtual

Sets a new label using an string.

Parameters
Anull terminated string

Implemented in CCLabelBMFont, CCLabelTTF, CCTextFieldTTF, and CCLabelAtlas.


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