Class ccs.UICheckBox

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

Method Summary

Class Detail

ccs.UICheckBox()
Base class for ccs.UICheckBox

Method Detail

  • addEventListenerCheckBox(selector, target)
    add event listener
    Parameters:
    {Function} selector
    {Object} target
  • <static> {ccs.UICheckBox} ccs.UICheckBox.create()
    allocates and initializes a UICheckBox.
    // example
    var uiCheckBox = ccs.UICheckBox.create();
    Returns:
    {ccs.UICheckBox}
  • {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}
  • {Boolean} isFlippedX()
    override "isFlippedX" of widget.
    Returns:
    {Boolean}
  • {Boolean} isFlippedY()
    override "isFlippedY" of widget.
    Returns:
    {Boolean}
  • 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(pt)
    override "setAnchorPoint" of widget.
    Parameters:
    {cc.Point} pt
  • setFlippedX(flipX)
    Sets whether the widget should be flipped horizontally or not.
    Parameters:
    {Boolean} flipX
  • setFlippedY(flipY)
    override "setFlippedY" of widget.
    Parameters:
    {Boolean} flipY