Skip to main content

Module layout

Module layout 

Source
Expand description

Incremental layout + paint engine, split across focused modules.

LayoutEngine is a persistent view tree + Taffy integration that produces a Scene per frame with hit regions and semantics, with incremental layout (scope isolation, dirty sets, repaint-boundary caching, intrinsics).

Structs§

LayoutEngine
LayoutStats
Statistics about layout performance.

Enums§

IntrinsicSizeMode
Selects the intrinsic sizing mode for LayoutEngine::intrinsic_size.

Constants§

TEXT_LINE_LEADING_PX
Extra height added to every Text line box on top of the font size, in px. The glyphs sit centered inside the box, so components that place a Text by hand must offset by half of this to center the glyphs on a target y.