axmol/tools/tolua++/CCLabelBMFont.pkg

40 lines
1.1 KiB
Plaintext
Raw Normal View History

2011-06-14 14:31:25 +08:00
enum {
kCCLabelAutomaticWidth = -1,
};
2012-02-02 14:26:38 +08:00
class CCLabelBMFont : public CCNode
{
CCLabelBMFont();
~CCLabelBMFont();
bool init();
2012-02-02 14:26:38 +08:00
void setString(const char *label);
void setString(const char *label, bool fromUpdate);
void setCString(const char *label);
const char* getString(void);
void setAnchorPoint(const CCPoint & var);
void setAlignment(CCTextAlignment alignment);
void setWidth(float width);
void setLineBreakWithoutSpace(bool breakWithoutSpace);
void setScale(float scale);
void setScaleX(float scaleX);
void setScaleY(float scaleY);
void setFntFile(const char* fntFile);
const char* getFntFile();
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
void setColor(const ccColor3B& color);
const ccColor3B& getColor(void);
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
GLubyte getOpacity(void);
void setOpacity(GLubyte opacity);
2011-06-14 14:31:25 +08:00
bool isOpacityModifyRGB();
void setOpacityModifyRGB(bool isOpacityModifyRGB);
2012-02-02 14:26:38 +08:00
static void purgeCachedData();
static CCLabelBMFont * create(const char *str, const char *fntFile, float width = kCCLabelAutomaticWidth, CCTextAlignment alignment = kCCTextAlignmentLeft, CCPoint imageOffset = CCPointMake(0, 0));
static CCLabelBMFont * create();
2012-02-02 14:26:38 +08:00
};