Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
overflowtools.cpp File Reference

The layout_overflow tool: which items below an object stick out of it (design 0017). More...

#include "overflowtools_p.h"
#include <sonde/guiintegration.h>
#include <sonde/objecttree.h>
#include <sonde/schema.h>
#include <QtCore/QJsonObject>
#include <QtGui/QWindow>
#include <algorithm>
#include <array>
#include <iterator>

Classes

struct  Sonde::anonymous_namespace{overflowtools.cpp}::Excess
 How far a rectangle goes past another, per side (0 where it doesn't). More...
struct  Sonde::anonymous_namespace{overflowtools.cpp}::Clipper
 A clipping ancestor: the object and its rectangle. More...
struct  Sonde::anonymous_namespace{overflowtools.cpp}::Finding
 One item found. More...
class  Sonde::anonymous_namespace{overflowtools.cpp}::OverflowWalk
 The walk below the root. More...
struct  Sonde::anonymous_namespace{overflowtools.cpp}::OverflowWalk::Context
 Where the walk is: the box, the parent, its facts and the clipping ancestors. More...

Namespaces

namespace  Sonde
 Embeddable Model Context Protocol server for Qt applications.

Functions

QString Sonde::anonymous_namespace{overflowtools.cpp}::rectText (const QRectF &r)
 "380x280 at 10,10".
QStringList Sonde::anonymous_namespace{overflowtools.cpp}::popupLines (QObject *root, double tolerance)
 The "Open popups:" lines for popups that go past their bounds.
ToolResult Sonde::anonymous_namespace{overflowtools.cpp}::layoutOverflow (const QJsonObject &args)
 The layout_overflow tool.
void Sonde::installLayoutOverflow (Server &server)
 Registers layout_overflow.

Variables

constexpr int Sonde::anonymous_namespace{overflowtools.cpp}::kDefaultDepth = 32
 Default number of levels below the root that are searched.
constexpr int Sonde::anonymous_namespace{overflowtools.cpp}::kDefaultMaxItems = 50
 Default number of items listed.
constexpr double Sonde::anonymous_namespace{overflowtools.cpp}::kDefaultTolerance = 0.5
 Default overflow below which nothing is reported, in pixels.

Detailed Description

The layout_overflow tool: which items below an object stick out of it (design 0017).