Class ccs.ImageView

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

Method Summary

Class Detail

ccs.ImageView()
Base class for ccs.Button

Method Detail

  • <static> {ccs.ImageView} ccs.ImageView.create()
    allocates and initializes a UIImageView.
    // example
    var uiImageView = ccs.ImageView.create();
    Returns:
    {ccs.ImageView}
  • {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}
  • ignoreContentAdaptWithSize(ignore)
    ignoreContentAdaptWithSize
    Parameters:
    {Boolean} ignore
  • {Boolean} isFlippedX()
    override "isFlippedX" of widget.
    Returns:
    {Boolean}
  • {Boolean} isFlippedY()
    override "isFlippedY" of widget.
    Returns:
    {Boolean}
  • loadTexture(fileName, texType)
    Load textures for button.
    Parameters:
    {String} fileName
    {ccs.TextureResType} texType
  • setAnchorPoint(point, y)
    override "setAnchorPoint" of widget.
    Parameters:
    {cc.Point|Number} point
    The anchor point of UIImageView or The anchor point.x of UIImageView.
    {Number} y Optional
    The anchor point.y of UIImageView.
  • setCapInsets(capInsets)
    Sets capinsets for button, if button is using scale9 renderer.
    Parameters:
    {cc.Rect} capInsets
  • setFlippedX(flipX)
    Sets whether the widget should be flipped horizontally or not.
    Parameters:
    {Boolean} flipX
  • setFlippedY(flipY)
    override "setFlippedY" of widget.
    Parameters:
    {Boolean} flipY
  • setScale9Enabled(able)
    Sets if button is using scale9 renderer.
    Parameters:
    {Boolean} able
  • setTextureRect(rect)
    set texture rect
    Parameters:
    {cc.Rect} rect