Position class
A position in the terminal coordinate system.
The origin (0, 0) is at the top-left corner of the terminal. x increases to the right, y increases downward.
Properties
Methods
-
clamp(
Position min, Position max) → Position -
Clamp this position within
minandmaxbounds. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator +(
Position other) → Position -
operator -(
Position other) → Position -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator unary-(
) → Position