|
| PHOSPHORENGINE_EXPORT QString | PhosphorEngine::GeometryUtils::serializeZoneAssignments (const QVector< ZoneAssignmentEntry > &entries) |
| PHOSPHORENGINE_EXPORT QVector< ZoneAssignmentEntry > | PhosphorEngine::GeometryUtils::deserializeZoneAssignments (const QString &json, QString *errorString=nullptr) |
| | Parse the wire format serializeZoneAssignments produces back into entries — the two functions are the single serializer/deserializer pair for the batch resnap payload, sharing the same JsonKeys constants so the sides cannot drift.
|
| PHOSPHORENGINE_EXPORT QRect | PhosphorEngine::GeometryUtils::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 where toArea is smaller, then clamped so the whole rect fits.
|
| PHOSPHORGEOMETRY_EXPORT QRectF | PhosphorEngine::GeometryUtils::availableAreaToOverlayCoordinates (const QRectF &geometry, const QRect &overlayGeometry) |
| PHOSPHORGEOMETRY_EXPORT void | PhosphorEngine::GeometryUtils::clampZonesToScreen (QVector< QRect > &zones, const QVector< QSize > &minSizes, const QRect &screen) |
| PHOSPHORGEOMETRY_EXPORT void | PhosphorEngine::GeometryUtils::enforceMinSizes (QVector< QRect > &zones, const QVector< QSize > &minSizes, int gapThreshold, int innerGap=0) |
| PHOSPHORGEOMETRY_EXPORT QString | PhosphorEngine::GeometryUtils::rectToJson (const QRect &rect) |
| PHOSPHORGEOMETRY_EXPORT void | PhosphorEngine::GeometryUtils::removeRectOverlaps (QVector< QRect > &zones, const QVector< QSize > &minSizes={}, int innerGap=0) |
| PHOSPHORGEOMETRY_EXPORT QRect | PhosphorEngine::GeometryUtils::snapToRect (const QRectF &rf) |