Class ccs.LabelBMFont
- Defined in: UILabelBMFont.js
- Extends ccs.Widget
Constructor Attributes | Constructor Name and Description |
---|---|
Base class for ccs.LabelBMFont
|
Method Summary
Class Detail
ccs.LabelBMFont()
Base class for ccs.LabelBMFont
Method Detail
-
allocates and initializes a UILabelBMFont.
// example var uiLabelBMFont = ccs.LabelBMFont.create();
- Returns:
- {ccs.LabelBMFont}
-
{cc.Size} getContentSize()get content size
- Returns:
- {cc.Size}
-
{string} getDescription()Returns the "class name" of widget.
- Returns:
- {string}
-
{String} getStringValue()get string value for labelbmfont.
- Returns:
- {String}
-
{cc.Node} getVirtualRenderer()override "getVirtualRenderer" method of widget.
- Returns:
- {cc.Node}
-
setAnchorPoint(point, y)override "setAnchorPoint" of widget.
- Parameters:
- {cc.Point|Number} point
- The anchor point of UILabelBMFont or The anchor point.x of UILabelBMFont.
- {Number} y Optional
- The anchor point.y of UILabelBMFont.
-
setFntFile(fileName)init a bitmap font atlas with an initial string and the FNT file
- Parameters:
- {String} fileName
-
setText(value)set string value for labelbmfont
- Parameters:
- {String} value