Rectangle<T extends num> class

Implemented types


Rectangle(T left, T top, T width, T height)
Rectangle.from(Rectangle<T> r)


bottom ↔ T
The y-coordinate of the bottom edge.
read / write
bottomLeft Point<T>
read / write
bottomRight Point<T>
read / write
center Point<num>
hashCode int
The hash code for this object. [...]
read-only, override
height ↔ T
The height of the rectangle.
read / write, override
isEmpty bool
left ↔ T
The x-coordinate of the left edge. [...]
read / write, override
The x-coordinate of the right edge.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size Point<T>
read / write
top ↔ T
The y-coordinate of the left edge. [...]
read / write, override
topLeft Point<T>
read / write
topRight Point<T>
read / write
width ↔ T
The width of the rectangle.
read / write, override


align() Rectangle<int>
boundingBox(Rectangle<T> other) Rectangle<T>
Returns a rectangle which completely contains this and other.
clone() Rectangle<T>
contains(num px, num py) bool
containsPoint(Point<num> p) bool
Tests whether another is inside or along the edges of this.
containsRectangle(Rectangle<num> r) bool
Tests whether this entirely contains another.
copyFrom(Rectangle<T> r) → void
inflate(T dx, T dy) → void
inflatePoint(Point<T> p) → void
intersection(Rectangle<T> rect) Rectangle<T>
Computes the intersection of this and other. [...]
intersects(Rectangle<num> r) bool
Returns true if this intersects other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
offset(T dx, T dy) → void
offsetPoint(Point<T> p) → void
setTo(T rx, T ry, T rwidth, T rheight) → void
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]