Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
AutotileEngineTypes.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
7#include <QJsonObject>
8#include <QRect>
9#include <QString>
10#include <memory>
11
12namespace PhosphorTiles {
13class SplitTree;
14}
15
16namespace PhosphorTileEngine {
17
32{
33 QString windowId;
34 bool wasFloating = false;
35};
36
107{
108 QJsonObject scriptState;
109 std::unique_ptr<PhosphorTiles::SplitTree> splitTree;
110 QString algorithmId;
111};
112
125{
126 QString windowId;
129
130 // Prior-state restoration info (used on cancel)
131 bool hadPriorState = false; // True if m_states contained windowId at begin
133 priorKey; // Key of the prior PhosphorTiles::TilingState (meaningful iff hadPriorState)
134 int priorRawIndex = -1; // Raw index in priorState->windowOrder() at begin
135 bool priorFloating = false; // Prior floating flag in priorState
141 bool priorOverflow = false;
142 bool priorSameScreen = false; // priorKey == currentKeyForScreen(targetScreenId)
143
144 // Eviction info (used when the target stack is already at maxWindows
145 // and the dragged window is a new member). The last tiled neighbour
146 // is floated to make room; on cancel the eviction is undone, on
147 // commit the evicted window is sent through the batch-float path so
148 // its pre-tile geometry is restored.
150};
151
152} // namespace PhosphorTileEngine
Definition AutotileConfig.h:13
Definition AutotileEngine.h:59
Identity of a per-screen placement state: a window's placement is scoped to the (screen,...
Definition EngineTypes.h:22
Active drag-insert preview state.
Definition AutotileEngineTypes.h:125
int lastInsertIndex
Definition AutotileEngineTypes.h:128
QString targetScreenId
Definition AutotileEngineTypes.h:127
bool priorOverflow
Whether that prior float was an OVERFLOW float rather than a user one.
Definition AutotileEngineTypes.h:141
bool hadPriorState
Definition AutotileEngineTypes.h:131
QString evictedWindowId
Definition AutotileEngineTypes.h:149
int priorRawIndex
Definition AutotileEngineTypes.h:134
bool priorFloating
Definition AutotileEngineTypes.h:135
QString windowId
Definition AutotileEngineTypes.h:126
PhosphorEngine::TilingStateKey priorKey
Definition AutotileEngineTypes.h:133
bool priorSameScreen
Definition AutotileEngineTypes.h:142
An already-managed window ARRIVING in a state via migrateWindowBetweenKeys, with the float state it h...
Definition AutotileEngineTypes.h:32
QString windowId
Definition AutotileEngineTypes.h:33
bool wasFloating
Definition AutotileEngineTypes.h:34
Script-state bag rescued from a TilingState that a teardown destroys, so a re-created state for the s...
Definition AutotileEngineTypes.h:107
std::unique_ptr< PhosphorTiles::SplitTree > splitTree
Definition AutotileEngineTypes.h:109
QString algorithmId
Definition AutotileEngineTypes.h:110
QJsonObject scriptState
Definition AutotileEngineTypes.h:108