BoundedSelection class abstract
Describes a SelectionWithEdges in which is completely bounded in all sides. All side values are guaranteed to be non-null.
As a result, it naturally takes form of a Range2D
and the edges are
described by coordinates IntVector2
that represent each Corner.
- Implemented types
-
- SelectionWithEdges<
IntVector2>
- SelectionWithEdges<
- Implementers
- Available extensions
Constructors
- BoundedSelection({required IntVector2 leftTop, required IntVector2 rightBottom, required Corner anchorCorner})
Properties
- anchor → IntVector2
-
The edge that should include anchorCoordinate. anchor is the origin of
a selection, it is the edge that should remain unchanged in an expansion
operation.
no setteroverride
- anchorCoordinate → IntVector2
-
See also:
no setteroverride
- anchorCorner → Corner
-
Defines which Corner represents the anchorCoordinate
final
- bottom → int?
-
no setteroverride
- focus → IntVector2
-
The edge that should include focusCoordinate. Focus should correspond
the edge that should be changed in a expansion operation.
no setteroverride
- focusCoordinate → IntVector2
-
See also:
no setteroverride
- hashCode → int
-
The hash code for this object.
no setter
- isNil → bool
-
no setterinherited
- isSingle → bool
-
no setter
- left → int?
-
no setteroverride
- leftBottom → IntVector2
-
no setterinherited
- leftTop → IntVector2
-
finalinherited
- right → int?
-
no setteroverride
- rightBottom → IntVector2
-
finalinherited
- rightTop → IntVector2
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → IntVector2
-
no setterinherited
- style → SelectionStyle?
-
no setterinherited
- top → int?
-
no setteroverride
- xRange → Range
-
no setterinherited
- yRange → Range
-
no setterinherited
Methods
-
bound(
{required Range2D to}) → Range2D -
Available on Selection, provided by the SelectionMethods extension
Bound a Selection to aRange2D
. -
containsRange(
Range2D otherRange) → bool -
Defines if this range contains
otherRange
entirelyinherited -
containsVector(
IntVector2 intVector2) → bool -
Defines if this range contains a specific vector
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overlaps(
Range2D otherRange) → bool -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator &(
Range2D other) → Range2D -
inherited
-
operator ==(
Object other) → bool - The equality operator.