Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
VirtualScreenId.h File Reference
#include <QLatin1String>
#include <QString>

Go to the source code of this file.

Namespaces

namespace  PhosphorIdentity
namespace  PhosphorIdentity::VirtualScreenId
 Virtual-screen ID format utilities.

Functions

bool PhosphorIdentity::VirtualScreenId::isVirtual (const QString &screenId)
 Check if a screen ID is a virtual screen ID (contains "/vs:").
QString PhosphorIdentity::VirtualScreenId::extractPhysicalId (const QString &screenId)
 Extract the physical screen ID from a virtual screen ID.
int PhosphorIdentity::VirtualScreenId::extractIndex (const QString &screenId)
 Extract the virtual screen index from a virtual screen ID.
QString PhosphorIdentity::VirtualScreenId::make (const QString &physicalScreenId, int index)
 Construct a virtual screen ID from physical ID and index.
bool PhosphorIdentity::VirtualScreenId::samePhysical (const QString &idA, const QString &idB)
 Check if two screen IDs share the same physical screen.
bool PhosphorIdentity::VirtualScreenId::isVirtualScreenCrossing (const QString &oldScreenId, const QString &newScreenId)
 Detect a virtual-screen crossing: the screen IDs differ, but both belong to the same physical monitor.
QString PhosphorIdentity::VirtualScreenId::onOutput (const QString &screenId, const QString &physicalScreenId)
 screenId carried onto the physical output physicalScreenId: a virtual screen keeps its index, a bare id becomes the bare output.

Variables

constexpr QLatin1String PhosphorIdentity::VirtualScreenId::Separator {"/vs:"}
 Separator between physical screen ID and virtual index.