|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
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. | |
How far a rectangle goes past another, per side (0 where it doesn't).