The walk below the root.
More...
|
| struct | Context |
| | Where the walk is: the box, the parent, its facts and the clipping ancestors. More...
|
|
|
| OverflowWalk (QWindow *window, const QRectF &rootRect, int maxDepth, double tolerance) |
| | A walk in window with the tool's limits.
|
| int | visit (const Context &ctx, int depth) |
| | Visits the children of ctx.parent.
|
|
QList< Finding > | findings () const |
| | What was found, in the order of the reply.
|
|
| int | visitBelow (qsizetype at, const Context &inner, int depth) |
| | Visits below inner.parent, and records the count on finding at (if >= 0).
|
| qsizetype | check (const Context &ctx, QObject *child, const QRectF &r, const OverflowFacts &facts) |
| | Records child if it overflows.
|
| qsizetype | checkScrolled (const Context &ctx, QObject *child, const QRectF &r) |
| | Records the content child of scrolling view ctx.parent if it goes past the root.
|
|
QStringList | geometryCauses (const QRectF &r, const QRectF &parent) const |
| | What geometry alone says placed r outside parent.
|
|
|
static QString | visibility (const QList< Clipper > &clippers, const QRectF &r) |
| | "clipped by X (62% visible)" for the nearest clipping ancestor, else "drawn outside".
|
|
|
QWindow * | m_window |
| | The root's window; items elsewhere are skipped.
|
|
QRectF | m_rootRect |
| | The root's rectangle.
|
|
int | m_maxDepth |
| | Levels searched.
|
|
double | m_tolerance |
| | Overflow ignored below this.
|
|
QList< Finding > | m_findings |
| | What was found, in tree order.
|
◆ check()
| qsizetype Sonde::anonymous_namespace{overflowtools.cpp}::OverflowWalk::check |
( |
const Context & | ctx, |
|
|
QObject * | child, |
|
|
const QRectF & | r, |
|
|
const OverflowFacts & | facts ) |
|
inlineprivate |
Records child if it overflows.
- Returns
- Its index in m_findings, or -1.
◆ checkScrolled()
| qsizetype Sonde::anonymous_namespace{overflowtools.cpp}::OverflowWalk::checkScrolled |
( |
const Context & | ctx, |
|
|
QObject * | child, |
|
|
const QRectF & | r ) |
|
inlineprivate |
Records the content child of scrolling view ctx.parent if it goes past the root.
- Returns
- Its index in m_findings, or -1.
◆ visit()
| int Sonde::anonymous_namespace{overflowtools.cpp}::OverflowWalk::visit |
( |
const Context & | ctx, |
|
|
int | depth ) |
|
inline |
Visits the children of ctx.parent.
- Returns
- The number of visible items below it.
◆ visitBelow()
| int Sonde::anonymous_namespace{overflowtools.cpp}::OverflowWalk::visitBelow |
( |
qsizetype | at, |
|
|
const Context & | inner, |
|
|
int | depth ) |
|
inlineprivate |
Visits below inner.parent, and records the count on finding at (if >= 0).
- Returns
- The number of visible items below it.
The documentation for this class was generated from the following file: