8#include "phosphorengine_export.h"
38 QString* errorString =
nullptr);
43PHOSPHORENGINE_EXPORT QRect
carryRectOntoArea(
const QRect& rect,
const QRect& fromArea,
const QRect& toArea);
Definition GeometryUtils.h:15
PHOSPHORENGINE_EXPORT QRect carryRectOntoArea(const QRect &rect, const QRect &fromArea, const QRect &toArea)
rect carried from fromArea onto toArea: its position kept relative to the area, its size shrunk only ...
PHOSPHORENGINE_EXPORT QString serializeZoneAssignments(const QVector< ZoneAssignmentEntry > &entries)
PHOSPHORENGINE_EXPORT QVector< ZoneAssignmentEntry > deserializeZoneAssignments(const QString &json, QString *errorString=nullptr)
Parse the wire format serializeZoneAssignments produces back into entries — the two functions are the...
Definition DesktopRemap.h:12
PHOSPHORGEOMETRY_EXPORT QString rectToJson(const QRect &rect)
PHOSPHORGEOMETRY_EXPORT void enforceMinSizes(QVector< QRect > &zones, const QVector< QSize > &minSizes, int gapThreshold, int innerGap=0)
PHOSPHORGEOMETRY_EXPORT void removeRectOverlaps(QVector< QRect > &zones, const QVector< QSize > &minSizes={}, int innerGap=0)
PHOSPHORGEOMETRY_EXPORT QRectF availableAreaToOverlayCoordinates(const QRectF &geometry, const QRect &overlayGeometry)
PHOSPHORGEOMETRY_EXPORT void clampZonesToScreen(QVector< QRect > &zones, const QVector< QSize > &minSizes, const QRect &screen)
PHOSPHORGEOMETRY_EXPORT QRect snapToRect(const QRectF &rf)