Class ccui.RichElementImage

Class Summary
Constructor Attributes Constructor Name and Description
 
The image element for RichText, it has filePath, textureRect, textureType attributes.

Method Summary

Class Detail

ccui.RichElementImage()
The image element for RichText, it has filePath, textureRect, textureType attributes.

Method Detail

  • <static> {ccui.RichElementImage} ccui.RichElementImage.create(tag, color, opacity, filePath)
    Create a richElementImage
    Parameters:
    {Number} tag
    {cc.Color} color
    {Number} opacity
    {String} filePath
    Deprecated:
    since v3.0, please use new ccui.RichElementImage() instead.
    Returns:
    {ccui.RichElementImage}
  • ctor(tag, color, opacity, filePath)
    Constructor of ccui.RichElementImage
    Parameters:
    {Number} tag
    {cc.Color} color
    {Number} opacity
    {String} filePath
  • init(tag, color, opacity, filePath)
    Initializes a ccui.RichElementImage
    Parameters:
    {Number} tag
    {cc.Color} color
    {Number} opacity
    {String} filePath