Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
GeometryUtils.h File Reference
#include "phosphorgeometry_export.h"
#include <QRect>
#include <QRectF>
#include <QSize>
#include <QString>
#include <QVector>

Go to the source code of this file.

Namespaces

namespace  PhosphorGeometry
namespace  PhosphorGeometry::GeometryDefaults

Functions

PHOSPHORGEOMETRY_EXPORT QRectF PhosphorGeometry::availableAreaToOverlayCoordinates (const QRectF &geometry, const QRect &overlayGeometry)
PHOSPHORGEOMETRY_EXPORT QRect PhosphorGeometry::snapToRect (const QRectF &rf)
PHOSPHORGEOMETRY_EXPORT void PhosphorGeometry::enforceMinSizes (QVector< QRect > &zones, const QVector< QSize > &minSizes, int gapThreshold, int innerGap=0)
PHOSPHORGEOMETRY_EXPORT void PhosphorGeometry::clampZonesToScreen (QVector< QRect > &zones, const QVector< QSize > &minSizes, const QRect &screen)
PHOSPHORGEOMETRY_EXPORT void PhosphorGeometry::removeRectOverlaps (QVector< QRect > &zones, const QVector< QSize > &minSizes={}, int innerGap=0)
PHOSPHORGEOMETRY_EXPORT QString PhosphorGeometry::rectToJson (const QRect &rect)
PHOSPHORGEOMETRY_EXPORT QRect PhosphorGeometry::insetRect (const QRect &rect, int inset)

Variables

constexpr int PhosphorGeometry::GeometryDefaults::MinRectSizePx = 50