Rectangle<T extends num> class

Implemented types

Constructors

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

Properties

bottom ↔ T
The y-coordinate of the bottom edge.
getter/setter pair
bottomLeft Point<T>
getter/setter pair
bottomRight Point<T>
getter/setter pair
center Point<num>
no setter
hashCode int
The hash code for this object.
no setteroverride
height ↔ T
The height of the rectangle.
getter/setter pairoverride
isEmpty bool
no setter
left ↔ T
The x-coordinate of the left edge.
getter/setter pairoverride
The x-coordinate of the right edge.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Point<T>
getter/setter pair
top ↔ T
The y-coordinate of the left edge.
getter/setter pairoverride
topLeft Point<T>
getter/setter pair
topRight Point<T>
getter/setter pair
width ↔ T
The width of the rectangle.
getter/setter pairoverride

Methods

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 nonexistent method or property is accessed.
inherited
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.
override

Operators

operator ==(Object other) bool
The equality operator.
override