cocos2d-x  3.0-rc0
 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 TextFieldTTF UICCTextField

Public Member Functions

virtual ~LabelProtocol ()
virtual void setString (const std::string &label)=0
 Sets a new label using a string. More...
 
virtual const std::string & getString () const =0
 Returns the string that is currently being used in this label. More...
 

Detailed Description

Common interface for Labels.

Constructor & Destructor Documentation

virtual ~LabelProtocol ( )
inlinevirtual

Member Function Documentation

virtual const std::string&
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 TextFieldTTF, Label, LabelTTF, LabelBMFont, and LabelAtlas.

virtual void setString ( const std::string &  label)
pure virtual

Sets a new label using a string.

Parameters
labelA null terminated string

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


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