axmol/tools/tolua++/CCLabelTTF.pkg

30 lines
1.1 KiB
Plaintext
Raw Normal View History

2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
class CCLabelTTF : public CCSprite
{
CCLabelTTF();
~CCLabelTTF();
bool init();
2012-02-02 14:26:38 +08:00
void setString(const char *label);
2013-07-04 12:50:17 +08:00
const char* getString(void) const;
2012-02-02 14:26:38 +08:00
2013-07-04 12:50:17 +08:00
CCTextAlignment getHorizontalAlignment() const;
void setHorizontalAlignment(CCTextAlignment alignment);
2013-07-04 12:50:17 +08:00
CCVerticalTextAlignment getVerticalAlignment() const;
void setVerticalAlignment(CCVerticalTextAlignment verticalAlignment);
2013-07-04 12:50:17 +08:00
CCSize getDimensions() const;
void setDimensions(CCSize &dim);
2013-07-04 12:50:17 +08:00
float getFontSize() const;
void setFontSize(float fontSize);
2013-07-04 12:50:17 +08:00
const char* getFontName() const;
void setFontName(const char *fontName);
static CCLabelTTF * create(const char *str, const char *fontName, float fontSize, const CCSize& dimensions, CCTextAlignment hAlignment, CCVerticalTextAlignment vAlignment);
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);
static CCLabelTTF * create();
2012-02-02 14:26:38 +08:00
};