45 std::string_view actual_json,
46 std::string_view expected_json,
48 LayoutTreeDiff* diff =
nullptr);
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
bool layout_tree_snapshots_equivalent(std::string_view actual_json, std::string_view expected_json, const LayoutTreeTolerance &tolerance={}, LayoutTreeDiff *diff=nullptr)
Compare two dump_layout_tree() JSON strings with the layout oracle rules: node kind/id/visibility/z-o...
std::string dump_layout_tree(const View &root, const LayoutTreeSnapshotOptions &options={})
Dump the current, already-laid-out View tree as deterministic JSON.
Definition layout_snapshot.hpp:23
std::vector< std::string > messages
Definition layout_snapshot.hpp:24
bool empty() const
Definition layout_snapshot.hpp:26
Definition layout_snapshot.hpp:11
float viewport_width
Definition layout_snapshot.hpp:14
float viewport_height
Definition layout_snapshot.hpp:15
std::string fixture
Definition layout_snapshot.hpp:13
std::string surface
Definition layout_snapshot.hpp:12
Definition layout_snapshot.hpp:18
float text_box_px
Definition layout_snapshot.hpp:20
float numeric_bounds_px
Definition layout_snapshot.hpp:19