axmol/tools/tolua++/CCLabelBMFont.pkg

40 lines
1.1 KiB
Plaintext

enum {
kCCLabelAutomaticWidth = -1,
};
class CCLabelBMFont : public CCNode
{
void setString(const char *label);
void setString(const char *label, bool fromUpdate);
void setCString(const char *label);
const char* getString(void);
void updateString(bool fromUpdate);
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();
void setColor(const ccColor3B& color);
const ccColor3B& getColor(void);
GLubyte getOpacity(void);
void setOpacity(GLubyte opacity);
bool isOpacityModifyRGB();
void setOpacityModifyRGB(bool isOpacityModifyRGB);
tolua_property__CCOpacity GLubyte opacity;
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();
};