Skip to main content

Module layout

Module layout 

Source

Modules§

coordinator
Node coordinator system mirroring Jetpack Compose’s NodeCoordinator pattern.
core
policies

Structs§

LayoutBox
Layout information for a single node.
LayoutMeasurements
Result of running the measure pass for a Compose layout tree.
LayoutNodeData
Snapshot of the data required to render a layout node.
LayoutTree
Result of running layout for a Compose tree.
MeasureLayoutOptions
SemanticsCallback
Discrete event callback reference produced during semantics extraction.
SemanticsNode
A single node within the semantics tree.
SemanticsTree
Rooted semantics tree extracted after layout.

Enums§

LayoutNodeKind
Classification of the node captured inside a LayoutBox.
SemanticsAction
Semantics action exposed to the input system.
SemanticsRole
Semantic role describing how a node should participate in accessibility and hit testing. Roles are now derived from SemanticsConfiguration rather than widget types.

Traits§

LayoutEngine
Extension trait that equips MemoryApplier with layout computation.

Functions§

build_semantics_tree_from_layout_tree
Builds a semantics tree from an existing LayoutTree.
measure_layout
Runs the measure phase for the subtree rooted at root.
measure_layout_with_options
tree_needs_layout
Check if a node or any of its descendants needs measure (selective measure optimization). This can be used by the app shell to skip layout when the tree is clean.
tree_needs_semantics
Check if the root semantics snapshot is dirty.