UiTree
A retained, platform-neutral UI tree.
Every operation is confined to the execution owner that creates this tree. Operational methods and close are not reentrant. The state property may be read under the execution owner during an active callback. An empty tree measures to IntSize.Zero. An empty tree performs no layout work and returns empty paint, input, and semantics results. A complete description is validated before mutation. Structural validation and local validation-hook failures leave an active tree unchanged and available for retry. Any failure after validation begins reconciliation, lifecycle work, or a pipeline operation poisons the tree. The tree clears retained ownership and attempts cleanup. Cleanup preserves the primary Throwable instance and suppresses later distinct failures on it.
Properties
Functions
Dispatches event to the currently focused logical component.
Dispatches event to the reverse paint-order hit path.
Dispatches event to the currently focused logical component.
Measures the retained tree under constraints.
Paints the laid-out tree in parent-before-child order.
Collects unresolved semantics in parent-before-child order.
Starts owner-thread monitoring at an operation boundary with existing nodes as the baseline. A second active monitor, reentrant access, or an unavailable tree is rejected without changing the screen. The caller closes the monitor; terminal tree cleanup also releases it automatically.