Class cc.visibleRect
- Defined in: CCVisibleRect.js
Constructor Attributes | Constructor Name and Description |
---|---|
cc.visibleRect is a singleton object which defines the actual visible rect of the current view,
it should represent the same rect as cc.view.getViewportRect()
|
Method Summary
Class Detail
cc.visibleRect()
cc.visibleRect is a singleton object which defines the actual visible rect of the current view,
it should represent the same rect as cc.view.getViewportRect()
Field Detail
{cc.Point}
bottom
- Bottom center coordinate of the screen related to the game scene
{cc.Point}
bottomLeft
- Bottom left coordinate of the screen related to the game scene
{cc.Point}
bottomRight
- Bottom right coordinate of the screen related to the game scene
{cc.Point}
center
- Center coordinate of the screen related to the game scene
{Number}
height
- Height of the screen
{cc.Point}
left
- Left center coordinate of the screen related to the game scene
{cc.Point}
right
- Right center coordinate of the screen related to the game scene
{cc.Point}
top
- Top center coordinate of the screen related to the game scene
{cc.Point}
topLeft
- Top left coordinate of the screen related to the game scene
{cc.Point}
topRight
- Top right coordinate of the screen related to the game scene
{Number}
width
- Width of the screen
Method Detail
-
<static> cc.visibleRect.init(visibleRect)initialize
- Parameters:
- {cc.Rect} visibleRect