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

Resolves the neighbouring surface — output or virtual desktop — in a direction, for cross-surface window navigation. More...

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

Public Member Functions

virtual ~ICrossSurfaceResolver ()=default
 
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 is none.
 
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, or 0 when there is none.
 

Detailed Description

Resolves the neighbouring surface — output or virtual desktop — in a direction, for cross-surface window navigation.

Implemented daemon-side over the screen-topology and virtual-desktop services and injected into the placement engines, so the geometry/desktop knowledge lives in exactly one place and the autotile and snap engines resolve crossings identically (the engines just ask). Both methods take the lower-case direction tokens "left" / "right" / "up" / "down".

Constructor & Destructor Documentation

◆ ~ICrossSurfaceResolver()

virtual PhosphorEngine::ICrossSurfaceResolver::~ICrossSurfaceResolver ( )
virtualdefault

Member Function Documentation

◆ neighborDesktopInDirection()

virtual int PhosphorEngine::ICrossSurfaceResolver::neighborDesktopInDirection ( int  currentDesktop,
const QString &  direction 
) const
pure virtual

The 1-based virtual desktop reached by stepping direction from currentDesktop on the desktop grid, or 0 when there is none.

◆ neighborOutputInDirection()

virtual QString PhosphorEngine::ICrossSurfaceResolver::neighborOutputInDirection ( const QString &  screenId,
const QString &  direction 
) const
pure virtual

The connected output geometrically adjacent to screenId in direction, or an empty string when there is none.


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