GPUI.Text.RangeGeometry (gpui v0.2.0-rc.1)

Copy Markdown View Source

Window-relative native pixel bounds for one requested logical text range.

Range geometry is bounded to at most 64 requests per surface and includes only ranges present in the current native layout. Each result contains a bounded rectangle for every visual row crossed by wrapped text.

Summary

Functions

Decodes a protocol range-geometry map into a typed value.

Types

t()

@type t() :: %GPUI.Text.RangeGeometry{
  range: GPUI.Text.Range.t(),
  rectangles: [GPUI.Text.Rectangle.t()]
}

Functions

from_event(value)

@spec from_event(map()) :: t()

Decodes a protocol range-geometry map into a typed value.