Packageflash.geom
Classpublic class Rectangle
InheritanceRectangle Inheritance Object



Public Properties
 PropertyDefined By
  bottom : Number
Rectangle
  bottomRight : Point
Rectangle
  height : Number
Rectangle
  left : Number
Rectangle
  right : Number
Rectangle
  size : Point
Rectangle
  top : Number
Rectangle
  topLeft : Point
Rectangle
  width : Number
Rectangle
  x : Number
Rectangle
  y : Number
Rectangle
Public Methods
 MethodDefined By
  
Rectangle(x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0)
Rectangle
 Inherited
_init():*
[static]
_init
  
Rectangle
  
Rectangle
  
Rectangle
  
Rectangle
  
Rectangle
 Inherited
AS3
  
inflate(dx:Number, dy:Number):void
Rectangle
  
inflatePoint(point:Point):void
Rectangle
 Inherited
init():*
[static]
init
  
Rectangle
  
Rectangle
  
Rectangle
 Inherited
AS3
  
offset(dx:Number, dy:Number):void
Rectangle
  
offsetPoint(point:Point):void
Rectangle
 Inherited
AS3
  
setEmpty():void
Rectangle
  
Rectangle
  
Rectangle
Protected Methods
 MethodDefined By
 Inherited
[static]
protected
 Inherited
_setPropertyIsEnumerable(o:*, V:String, enumerable:Boolean):void
[static]
protected
Public Constants
 ConstantDefined By
 Inheritedlength : int = 1
[static]
length
Property Detail
bottomproperty
bottom:Number


Implementation
    public function get bottom():Number
    public function set bottom(value:Number):void
bottomRightproperty 
bottomRight:Point


Implementation
    public function get bottomRight():Point
    public function set bottomRight(value:Point):void
heightproperty 
public var height:Number

leftproperty 
left:Number


Implementation
    public function get left():Number
    public function set left(value:Number):void
rightproperty 
right:Number


Implementation
    public function get right():Number
    public function set right(value:Number):void
sizeproperty 
size:Point


Implementation
    public function get size():Point
    public function set size(value:Point):void
topproperty 
top:Number


Implementation
    public function get top():Number
    public function set top(value:Number):void
topLeftproperty 
topLeft:Point


Implementation
    public function get topLeft():Point
    public function set topLeft(value:Point):void
widthproperty 
public var width:Number

xproperty 
public var x:Number

yproperty 
public var y:Number

Constructor Detail
Rectangle()Constructor
public function Rectangle(x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0)



Parameters
x:Number (default = 0)
 
y:Number (default = 0)
 
width:Number (default = 0)
 
height:Number (default = 0)
Method Detail
clone()method
public function clone():Rectangle

Returns
Rectangle
contains()method 
public function contains(x:Number, y:Number):Boolean

Parameters

x:Number
 
y:Number

Returns
Boolean
containsPoint()method 
public function containsPoint(point:Point):Boolean

Parameters

point:Point

Returns
Boolean
containsRect()method 
public function containsRect(rect:Rectangle):Boolean

Parameters

rect:Rectangle

Returns
Boolean
equals()method 
public function equals(toCompare:Rectangle):Boolean

Parameters

toCompare:Rectangle

Returns
Boolean
inflate()method 
public function inflate(dx:Number, dy:Number):void

Parameters

dx:Number
 
dy:Number

inflatePoint()method 
public function inflatePoint(point:Point):void

Parameters

point:Point

intersection()method 
public function intersection(toIntersect:Rectangle):Rectangle

Parameters

toIntersect:Rectangle

Returns
Rectangle
intersects()method 
public function intersects(toIntersect:Rectangle):Boolean

Parameters

toIntersect:Rectangle

Returns
Boolean
isEmpty()method 
public function isEmpty():Boolean

Returns
Boolean
offset()method 
public function offset(dx:Number, dy:Number):void

Parameters

dx:Number
 
dy:Number

offsetPoint()method 
public function offsetPoint(point:Point):void

Parameters

point:Point

setEmpty()method 
public function setEmpty():void

toString()method 
public function toString():String

Returns
String
union()method 
public function union(toUnion:Rectangle):Rectangle

Parameters

toUnion:Rectangle

Returns
Rectangle