Skip to main content

Crate gpui_engine_default

Crate gpui_engine_default 

Source
Expand description

GPUI’s default engine: Taffy-backed layout evaluation and the text shaping and wrapping caches the facade drives.

The scene representation and the engine’s interface contracts live in gpui_engine; this crate holds the concrete implementations that depend on taffy.

Structs§

DefaultTextSystem
The GPUI text rendering sub system.
LineLayoutCache
A per-window cache of shaped and wrapped line layouts, retaining the previous frame so reused layouts survive a frame boundary.
MissingGlyphReceiver
Receives batches of grapheme clusters that exhausted font fallback.
TaffyLayoutEngine
The taffy-backed layout tree for a window.

Traits§

DefaultTextSystemExt
Affordances of the default text system that the shared TextSystem SPI does not carry, in the same spirit as gpui_parley’s as_parley.

Functions§

default_layout_engine
Creates the layout engine the default engine hands to each new window.
underline_y_offset
Returns the vertical offset used to paint an underline within a line.