A directed selection represented by anchor and head positions.
Summary
Functions
Creates a collapsed selection at a logical position.
Creates a directed selection from anchor to head.
Types
@type t() :: %GPUI.Text.Selection{ anchor: GPUI.Text.Position.t(), head: GPUI.Text.Position.t(), id: String.t(), primary: boolean() }
Functions
@spec caret(String.t(), GPUI.Text.Position.t(), keyword()) :: t()
Creates a collapsed selection at a logical position.
@spec new(String.t(), GPUI.Text.Position.t(), GPUI.Text.Position.t(), keyword()) :: t()
Creates a directed selection from anchor to head.