Expand description
Data structures representing (multiple) selections and cursors.
Structs§
- SelRegion
- A type representing a single contiguous region of a selection. We use the
term “caret” (sometimes also “cursor”, more loosely) to refer to a selection
region with an empty interior. A “non-caret region” is one with a non-empty
interior (i.e.
start != end
). - Selection
- A set of zero or more selection regions, representing a selection state.
Enums§
- Affinity
- The “affinity” of a cursor which is sitting exactly on a line break.
- Insert
Drift - Indicates if an edit should try to drift inside or outside nearby selections. If the selection
is zero width, that is, it is a caret, this value will be ignored, the equivalent of the
Default
value.
Type Aliases§
- Horiz
Pos - A type representing horizontal measurements. This is currently in units that are not very well defined except that ASCII characters count as 1 each. It will change.