Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorTiles::TilingParams Struct Reference

Parameters for zone calculation. More...

#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.
QVector< QRect > currentGeometries
 Last applied zones (parallel to the window list), exposed to scripts as ctx.currentGeometries.

Detailed Description

Parameters for zone calculation.

Bundles all inputs to calculateZones() into a single struct so new parameters can be added without changing the virtual interface.

Member Function Documentation

◆ forPreview()

TilingParams PhosphorTiles::TilingParams::forPreview ( int count,
const QRect & rect,
const TilingState * state )
inlinestatic

Create minimal params for preview rendering (no per-window/screen context).

Member Data Documentation

◆ currentGeometries

QVector<QRect> PhosphorTiles::TilingParams::currentGeometries

Last applied zones (parallel to the window list), exposed to scripts as ctx.currentGeometries.

Advisory: it is the post-enforcement rendered layout, not the algorithm's last raw output. Empty only on the first tile (before any zones have been calculated); every subsequent retile carries the previously applied zones. (The resize descriptor is delivered to the onWindowResized hook as an argument, not via ctx, so there is no resize field here.)

◆ customParams

QVariantMap PhosphorTiles::TilingParams::customParams

Algorithm-declared custom parameters.

◆ focusedIndex

int PhosphorTiles::TilingParams::focusedIndex = -1

Index of focused window in tiled list (-1 = unknown).

◆ innerGap

int PhosphorTiles::TilingParams::innerGap = 0

Gap between adjacent zones in pixels.

◆ minSizes

QVector<QSize> PhosphorTiles::TilingParams::minSizes = {}

Per-window minimum sizes (may be empty).

◆ outerGaps

EdgeGaps PhosphorTiles::TilingParams::outerGaps

Gaps at screen edges in pixels (per-side).

◆ screenGeometry

QRect PhosphorTiles::TilingParams::screenGeometry

Available screen area in absolute pixels.

◆ screenInfo

TilingScreenInfo PhosphorTiles::TilingParams::screenInfo

Physical screen metadata.

◆ state

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().

◆ windowCount

int PhosphorTiles::TilingParams::windowCount = 0

Number of windows to tile.

◆ windowInfos

QVector<WindowInfo> PhosphorTiles::TilingParams::windowInfos

Per-window metadata (parallel to window list).


The documentation for this struct was generated from the following file: