Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
layout_snapshot.hpp File Reference
#include <pulp/view/view.hpp>
#include <string>
#include <string_view>
#include <vector>

Go to the source code of this file.

Classes

struct  pulp::view::LayoutTreeSnapshotOptions
struct  pulp::view::LayoutTreeTolerance
struct  pulp::view::LayoutTreeDiff

Namespaces

namespace  pulp
namespace  pulp::view
 Hover-cursor tracking for platform window hosts.

Functions

std::string pulp::view::dump_layout_tree (const View &root, const LayoutTreeSnapshotOptions &options={})
 Dump the current, already-laid-out View tree as deterministic JSON.
bool pulp::view::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-order/overflow must match exactly, numeric layout bounds must match exactly by default, and text-box dimensions allow a small tolerance for text measurement.