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

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 TilingStatestate = 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< WindowInfowindowInfos
 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.
 

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

static 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

◆ 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: