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
10namespace PhosphorSnapEngine {
11
27class PHOSPHORSNAPENGINE_EXPORT IZoneAdjacencyResolver
28{
29public:
32
41 virtual QString getAdjacentZone(const QString& currentZoneId, const QString& direction,
42 const QString& screenId) const = 0;
43
55 virtual QString getFirstZoneInDirection(const QString& direction, const QString& screenId) const = 0;
56
59};
60
61} // namespace PhosphorSnapEngine
Narrow interface for zone-adjacency queries used by snap navigation.
Definition IZoneAdjacencyResolver.h:28
IZoneAdjacencyResolver(const IZoneAdjacencyResolver &)=delete
virtual QString getAdjacentZone(const QString &currentZoneId, const QString &direction, const QString &screenId) const =0
Find the zone adjacent to currentZoneId in direction.
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 WindowTrackingService.h:37