TypingSupport

interface TypingSupport : CursorHandler

A TypingSupport is a specialized CursorHandler that not only handles a cursor but can simulate typing (eg.: put a Tile at the current cursor position and advance the cursor).

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
moveCursorBackward
Link copied to clipboard
common
abstract fun moveCursorBackward()
Moves the cursor one Position to the left.
moveCursorForward
Link copied to clipboard
common
abstract fun moveCursorForward()
Moves the cursor one Position to the right.
putTile
Link copied to clipboard
common
abstract fun putTile(tile: Tile)
Adds the tile at the current cursor location.
toString
Link copied to clipboard
common
open fun toString(): String

Properties

cursorPosition
Link copied to clipboard
common
abstract var cursorPosition: Position
Returns the position of the cursor.
isCursorAtTheEndOfTheLine
Link copied to clipboard
common
abstract val isCursorAtTheEndOfTheLine: Boolean
Tells whether the cursor is at the end of the line.
isCursorAtTheFirstRow
Link copied to clipboard
common
abstract val isCursorAtTheFirstRow: Boolean
Tells whether the cursor is at the first (index 0) row.
isCursorAtTheLastRow
Link copied to clipboard
common
abstract val isCursorAtTheLastRow: Boolean
Tells whether the cursor is at the last row.
isCursorAtTheStartOfTheLine
Link copied to clipboard
common
abstract val isCursorAtTheStartOfTheLine: Boolean
Tells whether the cursor is at the start of the line.
isCursorVisible
Link copied to clipboard
common
abstract var isCursorVisible: Boolean
Tells whether the cursor is visible.

Inheritors

TileGrid
Link copied to clipboard

Sources

(source)
Link copied to clipboard