3
3
extern class Rectangle {
4
function new(?x : Float, ?y : Float, ?width : Float, ?height : Float) : Void;
6
var bottomRight : flash.geom.Point;
7
function clone() : flash.geom.Rectangle;
8
function contains(x : Float, y : Float) : Bool;
9
function containsPoint(point : flash.geom.Point) : Bool;
10
function containsRect(rect : flash.geom.Rectangle) : Bool;
11
function equals(toCompare : flash.geom.Rectangle) : Bool;
5
var bottomRight : Point;
13
function inflate(dx : Float, dy : Float) : Void;
14
function inflatePoint(point : flash.geom.Point) : Void;
15
function intersection(toIntersect : flash.geom.Rectangle) : flash.geom.Rectangle;
16
function intersects(toIntersect : flash.geom.Rectangle) : Bool;
17
function isEmpty() : Bool;
19
function offset(dx : Float, dy : Float) : Void;
20
function offsetPoint(point : flash.geom.Point) : Void;
22
function setEmpty() : Void;
23
var size : flash.geom.Point;
24
function toString() : String;
26
var topLeft : flash.geom.Point;
27
function union(toUnion : flash.geom.Rectangle) : flash.geom.Rectangle;
15
function new(?x : Float, ?y : Float, ?width : Float, ?height : Float) : Void;
16
function clone() : Rectangle;
17
function contains(x : Float, y : Float) : Bool;
18
function containsPoint(point : Point) : Bool;
19
function containsRect(rect : Rectangle) : Bool;
20
function equals(toCompare : Rectangle) : Bool;
21
function inflate(dx : Float, dy : Float) : Void;
22
function inflatePoint(point : Point) : Void;
23
function intersection(toIntersect : Rectangle) : Rectangle;
24
function intersects(toIntersect : Rectangle) : Bool;
25
function isEmpty() : Bool;
26
function offset(dx : Float, dy : Float) : Void;
27
function offsetPoint(point : Point) : Void;
28
function setEmpty() : Void;
29
function toString() : String;
30
function union(toUnion : Rectangle) : Rectangle;