Package | org.flixel |
Class | public class FlxRect |
Inheritance | FlxRect ![]() |
Subclasses | FlxObject, FlxQuadTree |
Property | Defined by | ||
---|---|---|---|
bottom : Number [read-only]
The Y coordinate of the bottom of the rectangle.
| FlxRect | ||
height : Number | FlxRect | ||
left : Number [read-only]
The X coordinate of the left side of the rectangle.
| FlxRect | ||
right : Number [read-only]
The X coordinate of the right side of the rectangle.
| FlxRect | ||
top : Number [read-only]
The Y coordinate of the top of the rectangle.
| FlxRect | ||
width : Number | FlxRect | ||
![]() | x : Number | FlxPoint | |
![]() | y : Number | FlxPoint |
Method | Defined by | ||
---|---|---|---|
FlxRect(X:Number = 0, Y:Number = 0, Width:Number = 0, Height:Number = 0)
Instantiate a new rectangle.
| FlxRect | ||
![]() |
toString():String
Convert object to readable string name.
| FlxPoint |
bottom | property |
bottom:Number
[read-only]The Y coordinate of the bottom of the rectangle. Read-only.
Implementation public function get bottom():Number
height | property |
public var height:Number
The default value is 0
.
left | property |
left:Number
[read-only]The X coordinate of the left side of the rectangle. Read-only.
Implementation public function get left():Number
right | property |
right:Number
[read-only]The X coordinate of the right side of the rectangle. Read-only.
Implementation public function get right():Number
top | property |
top:Number
[read-only]The Y coordinate of the top of the rectangle. Read-only.
Implementation public function get top():Number
width | property |
public var width:Number
The default value is 0
.
FlxRect | () | constructor |
public function FlxRect(X:Number = 0, Y:Number = 0, Width:Number = 0, Height:Number = 0)
Instantiate a new rectangle.
ParametersX:Number (default = 0 ) — The X-coordinate of the point in space.
|
|
Y:Number (default = 0 ) — The Y-coordinate of the point in space.
|
|
Width:Number (default = 0 ) — Desired width of the rectangle.
|
|
Height:Number (default = 0 ) — Desired height of the rectangle.
|