Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
IVirtualDesktopManager.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 <phosphorengine_export.h>
7
8#include <QString>
9
10namespace PhosphorEngine {
11
12class PHOSPHORENGINE_EXPORT IVirtualDesktopManager
13{
14public:
15 virtual ~IVirtualDesktopManager() = default;
16
18 virtual int currentDesktop() const = 0;
19
25 virtual int currentDesktopForScreen(const QString& screenId) const
26 {
27 Q_UNUSED(screenId)
28 return currentDesktop();
29 }
30
33 virtual bool perScreenModeActive() const
34 {
35 return false;
36 }
37};
38
39} // namespace PhosphorEngine
Definition IVirtualDesktopManager.h:13
virtual int currentDesktopForScreen(const QString &screenId) const
The current virtual desktop for a specific screen, 1-based.
Definition IVirtualDesktopManager.h:25
virtual int currentDesktop() const =0
The global (active-screen) current virtual desktop, 1-based.
virtual bool perScreenModeActive() const
True when at least two screens are on different virtual desktops, i.e.
Definition IVirtualDesktopManager.h:33
Definition EngineTypes.h:13