- Preparing search index...
- The search index is not available
x4js
Constructors
constructor
- new Rect(): Rect
-
- new Rect(rc): Rect
-
- new Rect(rc): Rect
-
- new Rect(left, top, width, height): Rect
-
Parameters
-
left: number
-
top: number
-
width: number
-
height: number
Accessors
bottom
- get bottom(): number
-
Returns number
- set bottom(bottom): void
-
Returns void
right
- get right(): number
-
Returns number
- set right(right): void
-
Returns void
Methods
combine
- combine(rc): void
-
Returns void
contains
- contains(pt): boolean
-
Returns boolean
- contains(rc): boolean
-
Returns boolean
containsPt
- containsPt(x, y): boolean
-
Returns boolean
inflate
- inflate(dx, dy?): void
-
Parameters
-
dx: number
-
Optional
dy: number
Returns void
inflatedBy
- inflatedBy(dx, dy?): Rect
-
Parameters
-
dx: number
-
Optional
dy: number
isEmpty
- isEmpty(): boolean
-
Returns boolean
set
- set(left, top, width, height): void
-
Parameters
-
left: number
-
top: number
-
width: number
-
height: number
Returns void
touches
- touches(rc): boolean
-
Returns boolean
Deprecated