Module layout

Source
Expand description

Layout measurement and results. Layout: measurement context, engine, results, and retained layout nodes.

Re-exports§

pub use layout_commit::commit_layout_element;
pub use layout_ctx::LayoutChild;
pub use layout_ctx::LayoutContext;
pub use layout_ctx::LayoutCtx;
pub use layout_ctx::LayoutPass;
pub use layout_ctx::VirtualViewport;
pub use layout_engine::LayoutEngine;
pub use layout_node::LayoutNode;
pub use layout_node::Widget;
pub use layout_result::LayoutDebugInfo;
pub use layout_result::ChildLayout;
pub use layout_result::LayoutArtifact;
pub use layout_result::LayoutResult;
pub use crate::scene::PaintCtx;
pub use crate::scene::Painter;

Modules§

layout_commit
Layout commit implementation details. Commit phase that writes computed layout geometry into retained elements.
layout_ctx
Layout ctx implementation details. Mutable layout context shared while traversing retained nodes.
layout_engine
Layout engine implementation details. Retained-tree layout engine and invalidation-aware traversal.
layout_node
Layout node implementation details. Layout-node contract implemented by retained element kinds.
layout_result
Layout result implementation details. Computed node and child geometry returned by retained layout.