LEFT

LEFT({ cursor, document -> when { cursor.canMoveLeft() -> cursor.copy( colIdx = cursor.colIdx - 1 ) cursor.canMoveUp() -> { val prevRowIdx = cursor.rowIdx - 1 cursor.copy( rowIdx = prevRowIdx, colIdx = document.getColumnCount(prevRowIdx) ) } 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