Table of Contents

Namespace Terminal.Gui.Editor.Rendering

Cell-grid rendering pipeline that transforms document lines into visual output.

The pipeline flows: VisualLineBuilderCellVisualLine (composed of CellVisualLineElements such as TextRunElement, TabElement, NewlineGlyphElement, and FoldingMarkerElement).

Extension Points

  • IVisualLineTransformer — mutates element attributes (syntax highlighting, fold markers)
  • IBackgroundRenderer — paints cell rectangles (selection, current line, search hits)
  • IOverlayRenderer — draws overlays above the text (multi-caret indicators)

Visual lines are cached with LRU eviction and selectively invalidated from document change events.

Classes

CellVisualLine
CellVisualLineElement
FoldingMarkerElement
FoldingTransformer
HighlightingColorizer
MultiCaretRenderer
NewlineGlyphElement
SearchHitRenderer
TabElement
TextRunElement
VisualLineBuildContext
VisualLineBuilder
WordWrapStrategy

Structs

WrapSegment

Interfaces

IBackgroundRenderer
IOverlayRenderer
IVisualLineTransformer