Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
IGeometryResolver.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <phosphorplacement_export.h>
8#include <QString>
9
10namespace PhosphorZones {
11class Layout;
12}
13
15
16class PHOSPHORPLACEMENT_EXPORT IGeometryResolver
17{
18public:
19 virtual ~IGeometryResolver() = default;
20
21 virtual int resolveInnerGap(PhosphorZones::Layout* layout, const QString& screenId) const = 0;
22 virtual PhosphorLayout::EdgeGaps resolveOuterGaps(PhosphorZones::Layout* layout, const QString& screenId) const = 0;
23 virtual int defaultBorderWidth() const = 0;
24 virtual int defaultBorderRadius() const = 0;
25
37 virtual int snapBorderInset() const = 0;
38};
39
40} // namespace PhosphorPlacement
Definition IGeometryResolver.h:17
virtual int resolveInnerGap(PhosphorZones::Layout *layout, const QString &screenId) const =0
virtual int defaultBorderWidth() const =0
virtual int snapBorderInset() const =0
Per-side inset (in logical px) applied to a snapped window's frame.
virtual PhosphorLayout::EdgeGaps resolveOuterGaps(PhosphorZones::Layout *layout, const QString &screenId) const =0
virtual int defaultBorderRadius() const =0
Represents a collection of zones that form a layout.
Definition Layout.h:42
Definition IGeometryResolver.h:14
Definition IWindowTrackingService.h:23
Per-side edge gap values (resolved, non-negative pixel values)
Definition EdgeGaps.h:27