Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::AppearanceOptions Struct Reference

#include <appearance_defects.hpp>

Public Attributes

float overlap_tolerance_px = 0.5f
 Overlaps thinner than this in either axis are ignored — adjacent text commonly shares a boundary pixel.
float width_tolerance_px = 0.5f
 Ink may exceed its box by this much before it counts as truncation.
float min_overlap_area_px2 = 1.0f
 Overlaps smaller than this area are ignored.
bool include_canvas_text = true
bool compare_across_scroll_frames = false
 Compare runs that live in different scroll frames.
float control_inflate_ink_px = 0.0f
 Grow every measured run's ink by this many pixels on each side before the collision detectors run.

Member Data Documentation

◆ compare_across_scroll_frames

bool pulp::view::AppearanceOptions::compare_across_scroll_frames = false

Compare runs that live in different scroll frames.

Off by default: a scrolled row and a fixed toolbar can only be compared once both are in screen space, and a run scrolled out of its own clip is not on screen at all.

◆ control_inflate_ink_px

float pulp::view::AppearanceOptions::control_inflate_ink_px = 0.0f

Grow every measured run's ink by this many pixels on each side before the collision detectors run.

This is the positive control for an empty finding list. A detector that reports nothing has either found a clean panel or failed to reach it, and the report reads identically either way. Re-running with a few pixels of inflation on a panel with any text density at all MUST produce collisions; if it does not, the instrument never saw the text and its clean verdict means nothing. Never a measurement — findings produced under inflation describe the control, not the panel.

◆ include_canvas_text

bool pulp::view::AppearanceOptions::include_canvas_text = true

◆ min_overlap_area_px2

float pulp::view::AppearanceOptions::min_overlap_area_px2 = 1.0f

Overlaps smaller than this area are ignored.

◆ overlap_tolerance_px

float pulp::view::AppearanceOptions::overlap_tolerance_px = 0.5f

Overlaps thinner than this in either axis are ignored — adjacent text commonly shares a boundary pixel.

◆ width_tolerance_px

float pulp::view::AppearanceOptions::width_tolerance_px = 0.5f

Ink may exceed its box by this much before it counts as truncation.


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