GPUI.Text.InlineProjection (gpui v0.2.0)

Copy Markdown View Source

Non-editable text rendered at an explicit logical text position.

Inline projections are visual only. They do not enter the Rope, affect selection coordinates, participate in history, or imply completion policy.

Summary

Functions

Creates a bounded inline projection at a logical position.

Validates an inline projection's bounded text and color.

Types

rgb()

@type rgb() :: 0..16_777_215

t()

@type t() :: %GPUI.Text.InlineProjection{
  color: rgb(),
  position: GPUI.Text.Position.t(),
  text: String.t()
}

Functions

new(position, text, opts \\ [])

@spec new(GPUI.Text.Position.t(), String.t(), keyword()) :: t()

Creates a bounded inline projection at a logical position.

validate!(projection)

@spec validate!(t()) :: t()

Validates an inline projection's bounded text and color.