4#include <portals/widget.hpp>
11namespace portals::detail {
17 static std::expected<CellSize, TreeError> measure(WidgetTree &tree, Node<Widget> row, CellSize available);
18 static std::expected<CellSize, TreeError> measureWidget(WidgetTree &tree, Node<Widget> node, Node<Widget> row,
20 static std::expected<std::uint64_t, TreeError> geometryRevision(
const WidgetTree &tree);
21 static bool dispatching(
const EventRouter &router)
noexcept;
22 static std::uint64_t focusGeneration(
const EventRouter &router)
noexcept;
23 static std::expected<void, TreeError> focusScope(EventRouter &router, Node<Widget> host, Node<Widget> row = {},
24 Node<Widget> chrome = {});
25 static std::expected<Node<Widget>,
TreeError> enterRow(EventRouter &router, Node<Widget> host, Node<Widget> row,
27 static std::expected<std::size_t, TreeError> column(EventRouter &router, Node<Widget> row, Node<Widget> focused);
28 static std::expected<void, TreeError> publish(WidgetTree &tree, Node<Widget> host,
29 std::span<
const Node<Widget>> visible);
UI-owned focus and synchronous bubbling over an existing WidgetTree. Tree and Scheduler must outlive ...
Definition action.hpp:169
Public Portals API.
Definition action.hpp:8
TreeError
Checked tree failures; rejected operations never start the requested callback.
Definition widget_types.hpp:26