Parameters for zone calculation. More...
#include <phosphor-tiles/include/PhosphorTiles/TilingParams.h>
Static Public Member Functions | |
| static TilingParams | forPreview (int count, const QRect &rect, const TilingState *state) |
| Create minimal params for preview rendering (no per-window/screen context) | |
Public Attributes | |
| int | windowCount = 0 |
| Number of windows to tile. | |
| QRect | screenGeometry |
| Available screen area in absolute pixels. | |
| const TilingState * | state = nullptr |
| Current tiling state. | |
| int | innerGap = 0 |
| Gap between adjacent zones in pixels. | |
| EdgeGaps | outerGaps |
| Gaps at screen edges in pixels (per-side) | |
| QVector< QSize > | minSizes = {} |
| Per-window minimum sizes (may be empty) | |
| QVector< WindowInfo > | windowInfos |
| Per-window metadata (parallel to window list) | |
| int | focusedIndex = -1 |
| Index of focused window in tiled list (-1 = unknown) | |
| TilingScreenInfo | screenInfo |
| Physical screen metadata. | |
| QVariantMap | customParams |
| Algorithm-declared custom parameters. | |
Parameters for zone calculation.
Bundles all inputs to calculateZones() into a single struct so new parameters can be added without changing the virtual interface.
|
inlinestatic |
Create minimal params for preview rendering (no per-window/screen context)
| QVariantMap PhosphorTiles::TilingParams::customParams |
Algorithm-declared custom parameters.
| int PhosphorTiles::TilingParams::focusedIndex = -1 |
Index of focused window in tiled list (-1 = unknown)
| int PhosphorTiles::TilingParams::innerGap = 0 |
Gap between adjacent zones in pixels.
| QVector<QSize> PhosphorTiles::TilingParams::minSizes = {} |
Per-window minimum sizes (may be empty)
| EdgeGaps PhosphorTiles::TilingParams::outerGaps |
Gaps at screen edges in pixels (per-side)
| QRect PhosphorTiles::TilingParams::screenGeometry |
Available screen area in absolute pixels.
| TilingScreenInfo PhosphorTiles::TilingParams::screenInfo |
Physical screen metadata.
| const TilingState* PhosphorTiles::TilingParams::state = nullptr |
Current tiling state.
Must be non-null for all algorithm calls — algorithms may dereference without checking. The engine guarantees this by constructing TilingState before calling calculateZones().
| int PhosphorTiles::TilingParams::windowCount = 0 |
Number of windows to tile.
| QVector<WindowInfo> PhosphorTiles::TilingParams::windowInfos |
Per-window metadata (parallel to window list)