Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::anonymous_namespace{overflowtools.cpp}::Excess Struct Reference

How far a rectangle goes past another, per side (0 where it doesn't). More...

Public Member Functions

Excess where (const Excess &other, double tolerance) const
 The sides past tolerance in both this and other, with this one's amounts.
bool any (double tolerance) const
 Whether any side is past tolerance.
double largest () const
 The largest side.
QString text () const
 "bottom +412 px, right +3 px".

Static Public Member Functions

static Excess of (const QRectF &r, const QRectF &box, const QMarginsF &allowed={ })
 How far r goes past box, less allowed on each side.

Public Attributes

std::array< double, 4 > sides { }
 Left, top, right, bottom.

Detailed Description

How far a rectangle goes past another, per side (0 where it doesn't).


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