Class cc.PointObject
- Defined in: CCParallaxNode.js
- Extends cc.Class
Constructor Attributes | Constructor Name and Description |
---|---|
Parallax Object.
|
Method Summary
Class Detail
cc.PointObject()
Parallax Object.
Parallax required attributes are stored.
Parallax required attributes are stored.
Method Detail
-
Create a object to stored parallax data.
- 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
- 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