Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Selection ¶
type Selection struct { // At is the start of the selection. If Length == 0, then this is the caret // position. At int // Len is how many characters after At are also selected. Len int }
A Selection is a position and length representing a range of selected text. Length == 0 means that this Selection is simply a caret.
Some UI libraries choose to display the caret at the beginning or end of a selection, but vidar will always treat a selection as if it does not have a caret. By default, caret movement left or right will deselect, leaving the caret at either the beginning or the end of the selection, respectively.
Click to show internal directories.
Click to hide internal directories.