Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorEngine::IVirtualDesktopManager Class Referenceabstract

#include <phosphor-engine/include/PhosphorEngine/IVirtualDesktopManager.h>

Inheritance diagram for PhosphorEngine::IVirtualDesktopManager:
[legend]

Public Member Functions

virtual ~IVirtualDesktopManager ()=default
 
virtual int currentDesktop () const =0
 The global (active-screen) current virtual desktop, 1-based.
 
virtual int currentDesktopForScreen (const QString &screenId) const
 The current virtual desktop for a specific screen, 1-based.
 
virtual bool perScreenModeActive () const
 True when at least two screens are on different virtual desktops, i.e.
 

Constructor & Destructor Documentation

◆ ~IVirtualDesktopManager()

virtual PhosphorEngine::IVirtualDesktopManager::~IVirtualDesktopManager ( )
virtualdefault

Member Function Documentation

◆ currentDesktop()

virtual int PhosphorEngine::IVirtualDesktopManager::currentDesktop ( ) const
pure virtual

The global (active-screen) current virtual desktop, 1-based.

Implemented in PhosphorWorkspaces::VirtualDesktopManager.

◆ currentDesktopForScreen()

virtual int PhosphorEngine::IVirtualDesktopManager::currentDesktopForScreen ( const QString &  screenId) const
inlinevirtual

The current virtual desktop for a specific screen, 1-based.

Under Plasma 6.7 "switch desktops independently for each screen" (per-output virtual desktops) each screen can be on its own desktop. The default returns the global currentDesktop(), which is correct for single-desktop / pre-6.7 setups and for screens with no per-output desktop on record.

Reimplemented in PhosphorWorkspaces::VirtualDesktopManager.

◆ perScreenModeActive()

virtual bool PhosphorEngine::IVirtualDesktopManager::perScreenModeActive ( ) const
inlinevirtual

True when at least two screens are on different virtual desktops, i.e.

per-output virtual desktops are in effect. Default: false.

Reimplemented in PhosphorWorkspaces::VirtualDesktopManager.


The documentation for this class was generated from the following file: