Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
TilingState.h File Reference
#include <QColor>
#include <QHash>
#include <QPair>
#include <QRect>
#include <QRectF>
#include <QSet>
#include <QString>
#include <QVector>

Go to the source code of this file.

Classes

struct  PhosphorCompositor::BorderState
 Compositor-agnostic engine-managed (tiling-family) border state. More...
 
struct  PhosphorCompositor::TilingStateHelpers::TilingWindowState
 Bundles per-window state maps for cleanup operations. More...
 

Namespaces

namespace  PhosphorCompositor
 
namespace  PhosphorCompositor::TilingStateHelpers
 Compositor-agnostic tiling-family state accessors and pure helpers.
 

Functions

QString PhosphorCompositor::TilingStateHelpers::screenForTiledWindow (const BorderState &border, const QString &windowId)
 The screen a tiled window is tracked on, or empty if it is not tiled.
 
bool PhosphorCompositor::TilingStateHelpers::isTiledWindow (const BorderState &border, const QString &windowId)
 
void PhosphorCompositor::TilingStateHelpers::cleanupClosedWindowState (const QString &windowId, BorderState &border, TilingWindowState &state)
 Clean up all state tracking for a closed window.
 
void PhosphorCompositor::TilingStateHelpers::addTiledOnScreen (BorderState &border, const QString &screenId, const QString &windowId)
 Add a window to a screen's tiled bucket. Idempotent.
 
bool PhosphorCompositor::TilingStateHelpers::removeTiledOnScreen (BorderState &border, const QString &screenId, const QString &windowId)
 Remove a window from a specific screen's tiled bucket.
 
void PhosphorCompositor::TilingStateHelpers::removeFromOtherScreens (BorderState &border, const QString &windowId, const QString &keepScreenId)
 Remove a window from every screen's tiled bucket EXCEPT keepScreenId (cross-screen transfer: a window is tile-managed by one screen at a time, so re-recording on a new screen first strips any stale sibling claim).
 
bool PhosphorCompositor::TilingStateHelpers::removeFromAllScreens (BorderState &border, const QString &windowId)
 Remove a window from every screen's tiled bucket.
 
QSet< QString > PhosphorCompositor::TilingStateHelpers::tiledOnScreen (const BorderState &border, const QString &screenId)
 Detached copy of the set of tiled windows on a given screen (QHash::value copy, not a reference).