RIGHT

RIGHT({ cursor, document -> when { cursor.canMoveRight(document) -> cursor.copy( colIdx = cursor.colIdx + 1 ) cursor.canMoveDown(document) -> { cursor.copy( rowIdx = cursor.rowIdx + 1, colIdx = 0 ) } else -> cursor } })

Functions

clone
Link copied to clipboard
common
protected fun clone(): Any
compareTo
Link copied to clipboard
common
operator override fun compareTo(other: MovementDirection): Int
equals
Link copied to clipboard
common
operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
override fun hashCode(): Int
moveCursor
Link copied to clipboard
common
fun moveCursor(cursor: Cursor, textBuffer: EditableTextBuffer): Cursor
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

moveFn
Link copied to clipboard
common
private val moveFn: (Cursor, EditableTextBuffer) -> Cursor
name
Link copied to clipboard
common
val name: String
ordinal
Link copied to clipboard
common
val ordinal: Int