6#include "phosphorengine_export.h"
51 int map(
int oldPosition)
const;
68 QList<int> m_newPositions;
How KWin's desktop positions moved in one change of its desktop list: for each 1-based position in th...
Definition DesktopRemap.h:29
bool operator==(const DesktopRemap &other) const =default
static DesktopRemap removal(int position, int oldCount)
The map for exactly one desktop removed at position out of oldCount.
int singleRemoval() const
The old position when this change is exactly one desktop removed with every other keeping its order,...
int successor(int oldPosition) const
Like map(), except that a removed desktop answers the desktop KWin moves the outputs showing it and t...
static DesktopRemap fromIds(const QStringList &oldIds, const QStringList &newIds)
The map from oldIds to newIds, both in position order.
bool isIdentity() const
True when no old position moves or goes.
int map(int oldPosition) const
The new position of the desktop at oldPosition, or 0 when it was removed.
Definition DesktopRemap.h:12