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

#include <appearance_defects.hpp>

Public Member Functions

std::string describe () const

Public Attributes

AppearanceDefectKind kind = AppearanceDefectKind::text_overlap
std::string a_id
std::string a_text
std::string b_id
std::string b_text
Rect a_rect {}
Rect b_rect {}
Rect overlap {}
float painted_width = 0.0f
float box_width = 0.0f
int clipped_runs = 0
 For container_paints_no_text: how many text runs the container holds, every one of them clipped away.
float overflow_px = 0.0f
 How far the ink reaches past the worse of the box's two vertical edges.

Member Function Documentation

◆ describe()

std::string pulp::view::AppearanceFinding::describe ( ) const

Member Data Documentation

◆ a_id

std::string pulp::view::AppearanceFinding::a_id

◆ a_rect

Rect pulp::view::AppearanceFinding::a_rect {}

◆ a_text

std::string pulp::view::AppearanceFinding::a_text

◆ b_id

std::string pulp::view::AppearanceFinding::b_id

◆ b_rect

Rect pulp::view::AppearanceFinding::b_rect {}

◆ b_text

std::string pulp::view::AppearanceFinding::b_text

◆ box_width

float pulp::view::AppearanceFinding::box_width = 0.0f

◆ clipped_runs

int pulp::view::AppearanceFinding::clipped_runs = 0

For container_paints_no_text: how many text runs the container holds, every one of them clipped away.

◆ kind

AppearanceDefectKind pulp::view::AppearanceFinding::kind = AppearanceDefectKind::text_overlap

◆ overflow_px

float pulp::view::AppearanceFinding::overflow_px = 0.0f

How far the ink reaches past the worse of the box's two vertical edges.

Positive whenever the glyphs are outside the box, whether because they are wider than it or because they were placed off one of its sides.

◆ overlap

Rect pulp::view::AppearanceFinding::overlap {}

◆ painted_width

float pulp::view::AppearanceFinding::painted_width = 0.0f

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