GPUI.Text.Range (gpui v0.2.0)

Copy Markdown View Source

A half-open range between two GPUI.Text.Position values.

Summary

Functions

Creates a collapsed range at a logical position.

Creates a half-open range between two logical positions.

Types

t()

@type t() :: %GPUI.Text.Range{
  end: GPUI.Text.Position.t(),
  start: GPUI.Text.Position.t()
}

Functions

caret(position)

@spec caret(GPUI.Text.Position.t()) :: t()

Creates a collapsed range at a logical position.

new(start_position, end_position)

Creates a half-open range between two logical positions.