mirror of https://github.com/axmolengine/axmol.git
30 lines
785 B
Plaintext
30 lines
785 B
Plaintext
|
|
#include "CCSprite.h"
|
|
#include "CCTexture2D.h"
|
|
|
|
namespace cocos2d{
|
|
class CCLabelTTF : public CCSprite, public CCLabelProtocol
|
|
{
|
|
CCLabelTTF();
|
|
~CCLabelTTF();
|
|
char * description();
|
|
|
|
static CCLabelTTF * labelWithString(const char *label, CCSize dimensions, CCTextAlignment alignment, const char *fontName, float fontSize);
|
|
|
|
static CCLabelTTF * labelWithString(const char *label, const char *fontName, float fontSize);
|
|
|
|
bool initWithString(const char *label, CCSize dimensions, CCTextAlignment alignment, const char *fontName, float fontSize);
|
|
|
|
bool initWithString(const char *label, const char *fontName, float fontSize);
|
|
|
|
|
|
void setString(const char *label);
|
|
const char* getString(void);
|
|
|
|
CCLabelProtocol* convertToLabelProtocol();
|
|
|
|
};
|
|
|
|
} //namespace cocos2d
|
|
|