- Implements
-
- MutableRectangle<T>
Constructors
- Rectangle(T left, T top, T width, T height)
- Rectangle.from(Rectangle<T> r)
Properties
- bottom → T
-
read / write
- bottomLeft → Point<T>
-
read / write
- bottomRight → Point<T>
-
read / write
- center → Point<num>
-
read-only
- hashCode → int
-
read-only
- height → T
-
read / write
- isEmpty → bool
-
read-only
- left → T
-
read / write
- right → T
-
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - size → Point<T>
-
read / write
- top → T
-
read / write
- topLeft → Point<T>
-
read / write
- topRight → Point<T>
-
read / write
- width → T
-
read / write
Operators
-
operator ==(
Object other) → bool -
The equality operator.
Methods
-
align(
) → Rectangle<int> -
boundingBox(
Rectangle<T> other) → Rectangle<T> -
Returns a new rectangle which completely contains
this
andother
. -
clone(
) → Rectangle<T> -
contains(
num px, num py) → bool -
containsPoint(
Point<num> p) → bool -
Tests whether
another
is inside or along the edges ofthis
. -
containsRectangle(
Rectangle<num> r) → bool -
Tests whether
this
entirely containsanother
. -
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
andother
. -
intersects(
Rectangle<num> r) → bool -
Returns true if
this
intersectsother
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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 -
Returns a string representation of this object.