Class ccs.CheckBox

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

Method Summary

Class Detail

ccs.CheckBox()
Base class for ccs.CheckBox

Method Detail

  • addEventListenerCheckBox(selector, target)
    add event listener
    Parameters:
    {Function} selector
    {Object} target
  • <static> {ccs.CheckBox} ccs.CheckBox.create()
    allocates and initializes a UICheckBox.
    // example
    var uiCheckBox = ccs.CheckBox.create();
    Returns:
    {ccs.CheckBox}
  • {cc.Size} getContentSize()
    override "getContentSize" method of widget.
    Returns:
    {cc.Size}
  • {string} getDescription()
    Returns the "class name" of widget.
    Returns:
    {string}
  • {cc.Node} getVirtualRenderer()
    override "getVirtualRenderer" method of widget.
    Returns:
    {cc.Node}
  • loadTextureBackGround(backGround, texType)
    Load backGround texture for checkbox.
    Parameters:
    {String} backGround
    {ccs.TextureResType} texType
  • loadTextureBackGroundDisabled(backGroundDisabled, texType)
    Load backGroundDisabled texture for checkbox.
    Parameters:
    {String} backGroundDisabled
    {ccs.TextureResType} texType
  • loadTextureBackGroundSelected(backGroundSelected, texType)
    Load backGroundSelected texture for checkbox.
    Parameters:
    {String} backGroundSelected
    {ccs.TextureResType} texType
  • loadTextureFrontCross(cross, texType)
    Load cross texture for checkbox.
    Parameters:
    {String} cross
    {ccs.TextureResType} texType
  • loadTextureFrontCrossDisabled(frontCrossDisabled, texType)
    Load frontCrossDisabled texture for checkbox.
    Parameters:
    {String} frontCrossDisabled
    {ccs.TextureResType} texType
  • loadTextures(backGround, backGroundSelected, cross, backGroundDisabled, frontCrossDisabled, texType)
    Load textures for checkbox.
    Parameters:
    {String} backGround
    {String} backGroundSelected
    {String} cross
    {String} backGroundDisabled
    {String} frontCrossDisabled
    {ccs.TextureResType} texType
  • setAnchorPoint(point, y)
    override "setAnchorPoint" of widget.
    Parameters:
    {cc.Point|Number} point
    The anchor point of UICheckBox or The anchor point.x of UICheckBox.
    {Number} y Optional
    The anchor point.y of UICheckBox.