Class cc.PointObject

Class Summary
Constructor Attributes Constructor Name and Description
 
Parallax Object.

Method Summary

Class Detail

cc.PointObject()
Parallax Object.
Parallax required attributes are stored.

Method Detail

  • <static> {cc.PointObject} cc.PointObject.create(ratio, offset)
    Create a object to stored parallax data.
    Parameters:
    {cc.Point} ratio
    {cc.Point} offset
    Deprecated:
    since v3.0 please use new cc.PointObject() instead.
    Returns:
    {cc.PointObject}
  • {cc.Node} getChild()
    Gets the child.
    Returns:
    {cc.Node}
  • {cc.Point} getOffset()
    Gets the offset.
    Returns:
    {cc.Point}
  • {cc.Point} getRatio()
    Gets the ratio.
    Returns:
    {cc.Point} Not point, this is ratio.
  • {Boolean} initWithCCPoint(ratio, offset)
    initializes cc.PointObject
    Parameters:
    {cc.Point} ratio
    Not point, this is a ratio.
    {cc.Point} offset
    Returns:
    {Boolean}
  • setChild(value)
    Set the child.
    Parameters:
    {cc.Node} value
  • setOffset(value)
    Set the offset.
    Parameters:
    {cc.Point} value
  • setRatio(value)
    Set the ratio.
    Parameters:
    {cc.Point} value