cocos2d-x  3.0-alpha0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LabelProtocol Class Referenceabstract

Common interface for Labels. More...

#include <CCProtocols.h>

Inheritance diagram for LabelProtocol:
Label LabelAtlas LabelBMFont LabelTTF UICCLabelAtlas TextFieldTTF UICCTextField

Public Member Functions

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

Detailed Description

Common interface for Labels.

Member Function Documentation

virtual const char* getString ( ) const
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 LabelBMFont, TextFieldTTF, LabelTTF, Label, and LabelAtlas.

virtual void setString ( const char *  label)
pure virtual

Sets a new label using a string.

Parameters
labelA null terminated string

Implemented in LabelBMFont, TextFieldTTF, LabelTTF, LabelAtlas, and Label.


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