Class ccs.UILabelAtlas

Class Summary
Constructor Attributes Constructor Name and Description
 
Base class for ccs.UILabelAtlas

Method Summary

Class Detail

ccs.UILabelAtlas()
Base class for ccs.UILabelAtlas

Method Detail

  • <static> {ccs.UILabelAtlas} ccs.UILabelAtlas.create()
    allocates and initializes a UILabelAtlas.
    // example
    var uiLabelAtlas = ccs.UILabelAtlas.create();
    Returns:
    {ccs.UILabelAtlas}
  • {cc.Size} getContentSize()
    override "getContentSize" method of widget.
    Returns:
    {cc.Size}
  • {string} getDescription()
    Returns the "class name" of widget.
    Returns:
    {string}
  • {String} getStringValue()
    get string value for labelatlas.
    Returns:
    {String}
  • {cc.Node} getVirtualRenderer()
    override "getVirtualRenderer" method of widget.
    Returns:
    {cc.Node}
  • setAnchorPoint(pt)
    override "setAnchorPoint" of widget.
    Parameters:
    {cc.Point} pt
  • setProperty(stringValue, charMapFile, itemWidth, itemHeight, startCharMap)
    initializes the UILabelAtlas with a string, a char map file(the atlas), the width and height of each element and the starting char of the atlas
    Parameters:
    {String} stringValue
    {String} charMapFile
    {number} itemWidth
    {number} itemHeight
    {String} startCharMap
  • setStringValue(value)
    set string value for labelatlas.
    Parameters:
    {String} value