A neutral visual annotation attached to a logical text range.
Decorations carry rendering facts only. background and underline are
six-digit RGB integers; consumers retain diagnostic, language, severity, and
command policy outside the renderer primitive.
Summary
Types
@type rgb() :: 0..16_777_215
@type t() :: %GPUI.Text.Decoration{ background: rgb() | nil, range: GPUI.Text.Range.t(), underline: rgb() | nil, underline_style: underline_style() }
@type underline_style() :: :solid | :dashed | :wavy
Functions
@spec new( GPUI.Text.Range.t(), keyword() ) :: t()