Packageorg.flixel
Classpublic class FlxRect
InheritanceFlxRect Inheritance FlxPoint Inheritance Object
Subclasses FlxObject, FlxQuadTree

Stores a rectangle.



Public Properties
 PropertyDefined 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
 Inheritedx : Number
FlxPoint
 Inheritedy : Number
FlxPoint
Public Methods
 MethodDefined By
  
FlxRect(X:Number = 0, Y:Number = 0, Width:Number = 0, Height:Number = 0)
Instantiate a new rectangle.
FlxRect
 Inherited
toString():String
Convert object to readable string name.
FlxPoint
Property Detail
bottomproperty
bottom:Number  [read-only]

The Y coordinate of the bottom of the rectangle. Read-only.


Implementation
    public function get bottom():Number
heightproperty 
public var height:Number

The default value is 0.

leftproperty 
left:Number  [read-only]

The X coordinate of the left side of the rectangle. Read-only.


Implementation
    public function get left():Number
rightproperty 
right:Number  [read-only]

The X coordinate of the right side of the rectangle. Read-only.


Implementation
    public function get right():Number
topproperty 
top:Number  [read-only]

The Y coordinate of the top of the rectangle. Read-only.


Implementation
    public function get top():Number
widthproperty 
public var width:Number

The default value is 0.

Constructor Detail
FlxRect()Constructor
public function FlxRect(X:Number = 0, Y:Number = 0, Width:Number = 0, Height:Number = 0)

Instantiate a new rectangle.

Parameters
X: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.