Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
AutotileState.h File Reference
#include <PhosphorCompositor/DecorationDefaults.h>
#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 autotile border state. More...
 
struct  PhosphorCompositor::AutotileStateHelpers::AutotileWindowState
 Bundles per-window state maps for cleanup operations. More...
 

Namespaces

namespace  PhosphorCompositor
 
namespace  PhosphorCompositor::AutotileStateHelpers
 Compositor-agnostic autotile state accessors and pure helpers.
 

Functions

bool PhosphorCompositor::AutotileStateHelpers::isTiledWindow (const BorderState &border, const QString &windowId)
 
bool PhosphorCompositor::AutotileStateHelpers::shouldShowBorderForWindow (const BorderState &border, const QString &windowId)
 
void PhosphorCompositor::AutotileStateHelpers::cleanupClosedWindowState (const QString &windowId, BorderState &border, AutotileWindowState &state)
 Clean up all state tracking for a closed window.
 
void PhosphorCompositor::AutotileStateHelpers::addTiledOnScreen (BorderState &border, const QString &screenId, const QString &windowId)
 Add a window to a screen's tiled bucket. Idempotent.
 
bool PhosphorCompositor::AutotileStateHelpers::removeTiledOnScreen (BorderState &border, const QString &screenId, const QString &windowId)
 Remove a window from a specific screen's tiled bucket.
 
void PhosphorCompositor::AutotileStateHelpers::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::AutotileStateHelpers::removeFromAllScreens (BorderState &border, const QString &windowId)
 Remove a window from every screen's tiled bucket.
 
QSet< QString > PhosphorCompositor::AutotileStateHelpers::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).
 
QVector< QPair< QString, QString > > PhosphorCompositor::AutotileStateHelpers::allTiledPairs (const BorderState &border)
 Collect every tiled (windowId, screenId) pair for bulk operations (hide-titlebars toggle on).