cocos2d-x  2.2.3-gd2.113-rev1ec524e
Loading...
Searching...
No Matches
CCLabelProtocol Class Referenceabstract

Common interface for Labels NA NA. More...

#include <CCProtocols.h>

Inheritance diagram for CCLabelProtocol:
[legend]

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...
 

Detailed Description

Common interface for Labels NA NA.

Member Function Documentation

◆ getString()

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

◆ setString()

virtual void setString ( const char *  label)
pure virtual

Sets a new label using an string.

Parameters
Anull terminated string

Implemented in CCLabelAtlas, CCLabelTTF, CCLabelBMFont, and CCTextFieldTTF.


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