Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
ICrossSurfaceResolver.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 <QString>
7
8namespace PhosphorEngine {
9
21{
22public:
23 virtual ~ICrossSurfaceResolver() = default;
24
27 virtual QString neighborOutputInDirection(const QString& screenId, const QString& direction) const = 0;
28
31 virtual int neighborDesktopInDirection(int currentDesktop, const QString& direction) const = 0;
32};
33
34} // namespace PhosphorEngine
Resolves the neighbouring surface — output or virtual desktop — in a direction, for cross-surface win...
Definition ICrossSurfaceResolver.h:21
virtual int neighborDesktopInDirection(int currentDesktop, const QString &direction) const =0
The 1-based virtual desktop reached by stepping direction from currentDesktop on the desktop grid,...
virtual QString neighborOutputInDirection(const QString &screenId, const QString &direction) const =0
The connected output geometrically adjacent to screenId in direction, or an empty string when there i...
Definition EngineTypes.h:13