Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
GeometryHelpers.h File Reference
#include <QRect>
#include <QRectF>
#include <algorithm>

Go to the source code of this file.

Namespaces

namespace  PhosphorCompositor
namespace  PhosphorCompositor::GeometryHelpers
 Compositor-agnostic geometry helper utilities.

Functions

QRect PhosphorCompositor::GeometryHelpers::snapToRect (const QRectF &rf)
 Convert QRectF to QRect with edge-consistent rounding.