Rectangle.hx 1012 B

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