Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::detail::LayoutTraversalAccess Struct Reference

Internal checked bridge for owning layout edges and regional input. Public arrange retains its ordinary clipping fallback. More...

#include <layout_traversal.hpp>

Static Public Member Functions

static std::expected< void, TreeError > arrange (WidgetTree &tree, Node< Widget > node, CellRect local, CellRect viewport, const ParentLayoutEdge &edge)
static std::expected< bool, TreeError > adoptRegionalInput (WidgetTree &tree, const LayoutSnapshot &snapshot, std::span< const RegionalInputOwnerProposal > owners)
 Validate and allocate the whole batch before publishing any gate.

Detailed Description

Internal checked bridge for owning layout edges and regional input. Public arrange retains its ordinary clipping fallback.

Member Function Documentation

◆ adoptRegionalInput()

std::expected< bool, TreeError > portals::detail::LayoutTraversalAccess::adoptRegionalInput ( WidgetTree & tree,
const LayoutSnapshot & snapshot,
std::span< const RegionalInputOwnerProposal > owners )
static

Validate and allocate the whole batch before publishing any gate.

Parameters
treeUI-affine tree, between frames and outside guarded callbacks.
snapshotFresh owning GEOMETRY snapshot with current input history.
ownersComplete direct-child proposals, borrowed only during this call.
Returns
Whether admission changed, or a typed identity/geometry/allocation error. No callback runs during validation or publication.

◆ arrange()

std::expected< void, TreeError > portals::detail::LayoutTraversalAccess::arrange ( WidgetTree & tree,
Node< Widget > node,
CellRect local,
CellRect viewport,
const ParentLayoutEdge & edge )
inlinestatic
Parameters
treeUI-affine tree borrowed during arrangement.
nodeChecked child identity.
localParent-local allocation.
viewportComplete surface viewport.
edgeFresh edge copied synchronously; no widget borrow escapes.
Returns
Success or the tree's unchanged arrangement/geometry/allocation error.

The documentation for this struct was generated from the following file: