2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
class CCLabelTTF : public CCSprite
|
|
|
|
{
|
|
|
|
void setString(const char *label);
|
|
|
|
const char* getString(void);
|
|
|
|
|
2012-08-10 18:14:04 +08:00
|
|
|
CCTextAlignment getHorizontalAlignment();
|
|
|
|
void setHorizontalAlignment(CCTextAlignment alignment);
|
|
|
|
|
|
|
|
CCVerticalTextAlignment getVerticalAlignment();
|
|
|
|
void setVerticalAlignment(CCVerticalTextAlignment verticalAlignment);
|
|
|
|
|
|
|
|
CCSize getDimensions();
|
|
|
|
void setDimensions(CCSize &dim);
|
|
|
|
|
|
|
|
float getFontSize();
|
|
|
|
void setFontSize(float fontSize);
|
|
|
|
|
|
|
|
const char* getFontName();
|
|
|
|
void setFontName(const char *fontName);
|
|
|
|
|
|
|
|
static CCLabelTTF * create();
|
|
|
|
static CCLabelTTF * create(const char *str, const char *fontName, float fontSize);
|
|
|
|
static CCLabelTTF * create(const char *str, const char *fontName, float fontSize, const CCSize& dimensions, CCTextAlignment hAlignment);
|
|
|
|
static CCLabelTTF * create(const char *str, const char *fontName, float fontSize, const CCSize& dimensions, CCTextAlignment hAlignment, CCVerticalTextAlignment vAlignment);
|
2012-02-02 14:26:38 +08:00
|
|
|
};
|