TabStops class final

Tab stop management.

Constructors

TabStops(int width, int interval)
Creates tab stops for a buffer width with a fixed interval.
factory
TabStops.defaults(int cols)
Creates tab stops for cols using defaultTabInterval.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
interval int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stops List<int>
getter/setter pair
width int
getter/setter pair

Methods

clear() → void
Clears all tab stops.
find(int col, int delta) int
Finds a tab stop relative to col moving by delta.
getWidth() int
Returns the current tab stop width.
isStop(int col) bool
Returns whether col is a tab stop.
next(int col) int
Returns the next tab stop after col.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prev(int col) int
Returns the previous tab stop before col.
reset(int col) → void
Clears the tab stop at col.
resize(int newWidth) → void
Resizes the tab stop table to newWidth.
set(int col) → void
Marks col as a tab stop.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

defaultTabInterval → const int
The default tab interval in cells.