package flash.geom; #if (!display && flash)


extern class Rectangle {
	
	
	public var bottom:Float;
	public var bottomRight:Point;
	public var height:Float;
	public var left:Float;
	public var right:Float;
	public var size:Point;
	public var top:Float;
	public var topLeft:Point;
	public var width:Float;
	public var x:Float;
	public var y:Float;
	
	public function new (x:Float = 0, y:Float = 0, width:Float = 0, height:Float = 0):Void;
	public function clone ():Rectangle;
	public function contains (x:Float, y:Float):Bool;
	public function containsPoint (point:Point):Bool;
	public function containsRect (rect:Rectangle):Bool;
	@:require(flash11) public function copyFrom (sourceRect:Rectangle):Void;
	public function equals (toCompare:Rectangle):Bool;
	public function inflate (dx:Float, dy:Float):Void;
	public function inflatePoint (point:Point):Void;
	public function intersection (toIntersect:Rectangle):Rectangle;
	public function intersects (toIntersect:Rectangle):Bool;
	public function isEmpty ():Bool;
	public function offset (dx:Float, dy:Float):Void;
	public function offsetPoint (point:Point):Void;
	public function setEmpty ():Void;
	@:require(flash11) public function setTo (xa:Float, ya:Float, widtha:Float, heighta:Float):Void;
	public function toString ():String;
	public function union (toUnion:Rectangle):Rectangle;
	
}


#else
typedef Rectangle = openfl.geom.Rectangle;
#end