CellSelection
data class CellSelection(val anchorColumn: Int, val anchorRow: Int, val caretColumn: Int, val caretRow: Int, val isBlock: Boolean = false)
Half-open terminal cell selection in visible render-cache coordinates.
anchorColumn and anchorRow identify the fixed selection edge. caretColumn and caretRow identify the moving edge and may be before the anchor for backward selections. Columns are caret positions between cells, so selecting cells 2 through 4 on one row is represented as columns 2..5. Linear selections use logical columns in stored text order. Block selections use visual columns and the same horizontal interval on every selected row; copying a block maps its cells back to logical order independently per row.
Constructors
Properties
Link copied to clipboard
zero-based anchor caret column.
Link copied to clipboard
zero-based moving caret column.
Link copied to clipboard
First logical caret column on startRow, or the left visual edge of a block.