Expand description
Building and updating the render graph from the layout tree.
Structs§
- Graph
Update Report - The outcome of a scoped update together with its effect on hit testing.
Enums§
- Graph
Rebuild Reason - Why a scoped scene update could not be applied, forcing the caller to throw the render graph away and build it again from the applier.
- Graph
Update - The outcome of a scoped scene update.
Functions§
- build_
graph_ from_ applier - Builds the render graph of the layout tree below
rootby reading nodes fromapplier. ReturnsNonewhenrootcannot be lowered to a layer. - build_
graph_ from_ layout_ tree - Builds the render graph of the layout box tree rooted at
root. - expand_
text_ bounds_ for_ baseline_ shift - Grows
text_boundsin the direction of the style’s baseline shift, by the shift in pixels atfont_size, so a clip does not cut the shifted glyphs. Returns the bounds unchanged when there is no baseline shift. - rebuild_
graph_ from_ applier - Builds
root’s graph again, its layers taking the allocations ofprevious, the graph it replaces. - update_
graph_ from_ applier - Applies
updatestographin place. Returnsfalsewhen the update could not be applied and the graph must be built again. - update_
graph_ from_ applier_ report - Like
update_graph_from_applier, and also reports whether the hit targets must be collected again or why the graph must be rebuilt.