Class cc.Rect
Defined in: CCGeometry.js.
Constructor Attributes | Constructor Name and Description |
---|---|
cc.Rect(x1, y1, width1, height1)
|
Method Attributes | Method Name and Description |
---|---|
getWidth()
|
|
getX()
|
|
getY()
|
|
setHeight(h)
|
|
setWidth(w)
|
|
setX(x)
|
|
setY(y)
|
Class Detail
cc.Rect(x1, y1, width1, height1)
- Parameters:
- {Number} x1
- {Number} y1
- {Number} width1
- {Number} height1
- Constructor
Method Detail
getHeight()
getWidth()
getX()
getY()
setHeight(h)
- Parameters:
- h
setWidth(w)
- Parameters:
- w
setX(x)
- Parameters:
- x
setY(y)
- Parameters:
- y