Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
IZoneAdjacencyResolver.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 "phosphorsnapengine_export.h"
7
8#include <QString>
9#include <QStringList>
10
11namespace PhosphorSnapEngine {
12
31class PHOSPHORSNAPENGINE_EXPORT IZoneAdjacencyResolver
32{
33public:
36
45 virtual QString getAdjacentZone(const QString& currentZoneId, const QString& direction,
46 const QString& screenId) const = 0;
47
59 virtual QString getFirstZoneInDirection(const QString& direction, const QString& screenId) const = 0;
60
68 virtual QString getAdjacentZoneOutside(const QStringList& zoneIds, const QString& direction,
69 const QString& screenId) const;
70
77 virtual QString getFirstZoneInDirectionOnDesktop(const QString& direction, const QString& screenId,
78 int desktop) const;
79
82};
83
84} // namespace PhosphorSnapEngine
IZoneAdjacencyResolver(const IZoneAdjacencyResolver &)=delete
virtual QString getFirstZoneInDirectionOnDesktop(const QString &direction, const QString &screenId, int desktop) const
getFirstZoneInDirection on desktop's layout (<= 0: the desktop the screen shows).
virtual QString getAdjacentZone(const QString &currentZoneId, const QString &direction, const QString &screenId) const =0
Find the zone adjacent to currentZoneId in direction.
virtual QString getAdjacentZoneOutside(const QStringList &zoneIds, const QString &direction, const QString &screenId) const
The zone next to the span zoneIds (their union) in direction, never one of them.
IZoneAdjacencyResolver & operator=(const IZoneAdjacencyResolver &)=delete
virtual QString getFirstZoneInDirection(const QString &direction, const QString &screenId) const =0
Find the edge zone in direction when no current zone exists.
Definition SnapStateResolver.h:16