Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
GeometryUtils.h File Reference
#include <PhosphorGeometry/GeometryUtils.h>
#include "phosphorzones_export.h"
#include <PhosphorLayoutApi/EdgeGaps.h>
#include <QRect>
#include <QRectF>
#include <QString>
#include <QVariantMap>

Go to the source code of this file.

Namespaces

namespace  PhosphorZones
namespace  PhosphorScreens
namespace  PhosphorZones::GeometryUtils

Functions

PHOSPHORZONES_EXPORT QRectF PhosphorZones::GeometryUtils::availableAreaToOverlayCoordinates (const QRectF &geometry, QScreen *screen)
PHOSPHORZONES_EXPORT QRectF PhosphorZones::GeometryUtils::getZoneGeometryWithGaps (PhosphorScreens::ScreenManager *mgr, PhosphorZones::Zone *zone, QScreen *screen, int innerGap, const ::PhosphorLayout::EdgeGaps &outerGaps, bool useAvailableGeometry=true, const QString &screenId={})
PHOSPHORZONES_EXPORT QRectF PhosphorZones::GeometryUtils::getZoneGeometryWithGaps (PhosphorScreens::ScreenManager *mgr, PhosphorZones::Zone *zone, const QRect &screenGeometry, const QRect &availableGeometry, int innerGap, const ::PhosphorLayout::EdgeGaps &outerGaps, bool useAvailableGeometry=true, const QString &screenId={})
PHOSPHORZONES_EXPORT QRect PhosphorZones::GeometryUtils::getZoneGeometryForScreen (PhosphorScreens::ScreenManager *mgr, PhosphorZones::Zone *zone, QScreen *screen, const QString &screenId, PhosphorZones::Layout *layout, int zonePadding, const ::PhosphorLayout::EdgeGaps &outerGaps)
PHOSPHORZONES_EXPORT QRectF PhosphorZones::GeometryUtils::getZoneGeometryForScreenF (PhosphorScreens::ScreenManager *mgr, PhosphorZones::Zone *zone, QScreen *screen, const QString &screenId, PhosphorZones::Layout *layout, int zonePadding, const ::PhosphorLayout::EdgeGaps &outerGaps)
PHOSPHORZONES_EXPORT qreal PhosphorZones::GeometryUtils::screenScale (PhosphorScreens::ScreenManager *mgr, const QString &screenId, QScreen *screen=nullptr)
 The logical scale of the output screenId lives on (a virtual screen answers for its physical output), falling back to screen when the id does not resolve.
PHOSPHORZONES_EXPORT QRectF PhosphorZones::GeometryUtils::effectiveScreenGeometry (PhosphorScreens::ScreenManager *mgr, PhosphorZones::Layout *layout, QScreen *screen)
PHOSPHORZONES_EXPORT QRectF PhosphorZones::GeometryUtils::effectiveScreenGeometry (PhosphorScreens::ScreenManager *mgr, PhosphorZones::Layout *layout, const QString &screenId)
 The rect layout resolves against on screenId: its full or available geometry as the manager reports it.
PHOSPHORZONES_EXPORT QRectF PhosphorZones::GeometryUtils::extractZoneGeometry (const QVariantMap &zone)
PHOSPHORZONES_EXPORT void PhosphorZones::GeometryUtils::setZoneGeometry (QVariantMap &zone, const QRectF &rect)
PHOSPHORGEOMETRY_EXPORT QRectF PhosphorZones::GeometryUtils::availableAreaToOverlayCoordinates (const QRectF &geometry, const QRect &overlayGeometry)
PHOSPHORGEOMETRY_EXPORT void PhosphorZones::GeometryUtils::clampZonesToScreen (QVector< QRect > &zones, const QVector< QSize > &minSizes, const QRect &screen)
PHOSPHORGEOMETRY_EXPORT void PhosphorZones::GeometryUtils::enforceMinSizes (QVector< QRect > &zones, const QVector< QSize > &minSizes, int gapThreshold, int innerGap=0)
PHOSPHORGEOMETRY_EXPORT QString PhosphorZones::GeometryUtils::rectToJson (const QRect &rect)
PHOSPHORGEOMETRY_EXPORT void PhosphorZones::GeometryUtils::removeRectOverlaps (QVector< QRect > &zones, const QVector< QSize > &minSizes={}, int innerGap=0)
PHOSPHORGEOMETRY_EXPORT QRect PhosphorZones::GeometryUtils::snapToRect (const QRectF &rf)