Skip to main content

Module canvas

Module canvas 

Source
Expand description

Canvas element handling prepaint, layout, and GPU quad rendering.

Structs§

EditorCanvas
The GPUI canvas element responsible for shaping and rendering text runs and quads.
LineMetrics
Visual layout metrics and block-level decorations for a single rendered line.
RunFonts
Fonts used when building styled text runs for a line.

Functions§

build_line_text_runs
Builds styled text runs for a single line by blending syntax spans and active selection.