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
- right ↔ T
-
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
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 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